diff --git a/hyhproject/common/model/LogSms.php b/hyhproject/common/model/LogSms.php index d1d92c1..75a0c01 100755 --- a/hyhproject/common/model/LogSms.php +++ b/hyhproject/common/model/LogSms.php @@ -37,12 +37,12 @@ class LogSms extends Base{ return WSTReturn("请勿频繁发送短信验证"); } //检测IP是否超过发短信次数 - $ipRs = $this->field("count(smsId) counts,max(createTime) createTime") - ->where(["smsIP"=>$ip]) - ->whereTime('createTime', 'between', [$date.' 00:00:00', $date.' 23:59:59'])->find(); - if($ipRs['counts']>(int)WSTConf("CONF.smsLimit")){ - return WSTReturn("发送短信验证次数过多!"); - } +// $ipRs = $this->field("count(smsId) counts,max(createTime) createTime") +// ->where(["smsIP"=>$ip]) +// ->whereTime('createTime', 'between', [$date.' 00:00:00', $date.' 23:59:59'])->find(); +// if($ipRs['counts']>(int)WSTConf("CONF.smsLimit")){ +// return WSTReturn("发送短信验证次数过多!"); +// } //if($ipRs['createTime']!='' && ((time()-strtotime($ipRs['createTime']))<120)){ // return WSTReturn("请勿频繁发送短信验证!"); //}