From 681cd1f46a2d04a21399f49b90ac8f5a168c7d5c Mon Sep 17 00:00:00 2001
From: heshupeng <hsp@bronet.cn>
Date: Wed, 16 Sep 2020 09:25:27 +0800
Subject: [PATCH] 1

---
 application/mobile/controller/Sms.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/application/mobile/controller/Sms.php b/application/mobile/controller/Sms.php
index 85c82d3..48f1a6e 100644
--- a/application/mobile/controller/Sms.php
+++ b/application/mobile/controller/Sms.php
@@ -30,9 +30,9 @@ class Sms extends Api
             $this->error(__('手机号不正确'));
         }
         $last = Smslib::get($mobile, $event);
-        if ($last && time() - $last['createtime'] < 360) {
-            $this->error(__('发送频繁'));
-        }
+        // 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 >= 500) {
             $this->error(__('发送频繁'));
--
libgit2 0.24.0