Forráskód Böngészése

短信改用乐见正式的

lizhen_gitee 7 hónapja
szülő
commit
e5d259e90b
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      application/api/controller/Sms.php

+ 2 - 2
application/api/controller/Sms.php

@@ -32,7 +32,7 @@ class Sms extends Api
             $this->error(__('手机号不正确'));
         }
         $last = Smslib::get($mobile, $event);
-        if ($last && time() - $last['createtime'] < 60) {
+        if ($last && time() - $last['createtime'] < 30) {
             $this->error(__('发送频繁'));
         }
         $ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', '-1 hours')->count();
@@ -59,7 +59,7 @@ class Sms extends Api
         if ($ret) {
             $this->success(__('发送成功'));
         } else {
-            $this->error(__('发送失败'));
+            $this->error(__('发送失败,发送过于频繁'));
         }
     }