From 2fc1d8620412f38861e6964ff928bd63594d6e27 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 18 Oct 2020 19:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyhproject/common/model/LogSms.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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("请勿频繁发送短信验证!"); //}