From 1478ee569f8ac2e28d4f81db0b3c79fa59e4efe1 Mon Sep 17 00:00:00 2001 From: lqmac Date: Tue, 14 Nov 2023 20:07:32 +0800 Subject: [PATCH] 1 --- application/api/controller/Sms.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/api/controller/Sms.php b/application/api/controller/Sms.php index 373b129..087e5fc 100755 --- a/application/api/controller/Sms.php +++ b/application/api/controller/Sms.php @@ -35,10 +35,10 @@ class Sms extends Api if ($last && time() - $last['createtime'] < 60) { $this->error(__('发送频繁')); } - $ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', '-1 hours')->count(); - if ($ipSendTotal >= 5) { - $this->error(__('发送频繁')); - } + // $ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', '-1 hours')->count(); + // if ($ipSendTotal >= 5) { + // $this->error(__('发送频繁')); + // } if ($event) { $userinfo = User::getByMobile($mobile); if ($event == 'register' && $userinfo) {