This commit is contained in:
liu 2024-03-19 09:55:01 +08:00
parent 4e4324ba05
commit 776c662b69
2 changed files with 1 additions and 1 deletions

View File

@ -835,6 +835,7 @@ class Auth extends BaseController
if (!$sms_code && !env('APP_DEBUG')) {
return app('json')->fail('验证码不正确');
}
$auth = Cache::get('u_try' . $data['auth_token']);
$auth && Cache::delete('u_try' . $data['auth_token']);
if (empty($auth)) {

View File

@ -714,7 +714,6 @@ Route::group('api/', function () {
Route::get('wechat/config', 'api.Wechat/jsConfig');
//图片验证码
Route::get('captcha', 'api.Auth/getCaptcha');
//合并账号
Route::post('user/merge', 'api.Auth/merge');