...
|
...
|
@@ -30,7 +30,7 @@ class Sms extends Api |
|
|
$this->error(__('手机号不正确'));
|
|
|
}
|
|
|
$last = Smslib::get($mobile, $event);
|
|
|
if ($last && time() - $last['createtime'] < 300) {
|
|
|
if ($last && time() - $last['createtime'] < 360) {
|
|
|
$this->error(__('发送频繁'));
|
|
|
}
|
|
|
$ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', '-1 hours')->count();
|
...
|
...
|
|