quguofeng 2 vuotta sitten
vanhempi
commit
cc7e0cecb4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      application/admin/controller/Sms.php

+ 1 - 1
application/admin/controller/Sms.php

@@ -36,7 +36,7 @@ class Sms extends Controller
         $last = Db::name('store_sms')->where(['mobile' => $phone, 'event' => $event])
             ->order('id', 'DESC')
             ->find();
-        if ($last && time() - $last['createtime']< (60*5)) {
+        if ($last && time() - $last['createtime']< (60)) {
             $this->error('发送频繁!');
         }