...
|
...
|
@@ -35,7 +35,7 @@ class Sms extends Api |
|
|
$this->error(__('发送频繁'));
|
|
|
}
|
|
|
$ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', '-1 hours')->count();
|
|
|
if ($ipSendTotal >= 5) {
|
|
|
if ($ipSendTotal >= 50) {
|
|
|
$this->error(__('发送频繁'));
|
|
|
}
|
|
|
if ($event) {
|
...
|
...
|
|