代码提交

This commit is contained in:
wong
2025-09-12 09:40:13 +08:00
parent db9e4eb004
commit b989c19a8a
5 changed files with 310 additions and 150 deletions

View File

@@ -288,7 +288,7 @@ class UserController extends BaseController
}
// 如果不是预期的格式,返回原始数据
return !empty($isJson) ? json_encode(['code' => 500,'data' => $response]) : errorJson('无需验证码');
return !empty($isJson) ? json_encode(['code' => 200,'msg' => '无需验证码','data' => ['verifyCodeImage' => '', 'verifySessionId' => '']]) : successJson(['verifyCodeImage' => '', 'verifySessionId' => ''],'无需验证码');
} catch (\Exception $e) {
$msg = '获取验证码失败'. $e->getMessage();
return !empty($isJson) ? json_encode(['code' => 400,'msg' => $msg]) : errorJson($msg);