|
@@ -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(__('发送失败,发送过于频繁'));
|
|
|
}
|
|
|
}
|
|
|
|