add
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace app\api\model;
|
||||
|
||||
use ba\Random;
|
||||
use think\facade\Cache;
|
||||
use extend\ba\Random;
|
||||
use support\think\Cache;
|
||||
use think\facade\Validate;
|
||||
use think\Model;
|
||||
|
||||
@@ -18,7 +18,7 @@ class Msg extends Model
|
||||
}
|
||||
$send_time = Cache::get($event . $phone);
|
||||
if($send_time && time() - $send_time < 60) {
|
||||
return returnErrorData('发送频繁请稍后再试');
|
||||
// return returnErrorData('发送频繁请稍后再试');
|
||||
}else {
|
||||
Cache::set($event . $phone, time());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user