This commit is contained in:
2025-08-14 17:52:24 +08:00
parent 281248fd04
commit d8af126088
5 changed files with 19 additions and 19 deletions

View File

@@ -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());
}