feat(security): 优化登录与支付密码错误提示文案并完善双端安全中心交互
- 安全校验提示:优化 AccountSecurity 与 MasterSecurity 密码错误提示,区分登录密码与支付密码,并增加剩余可重试次数提示 - 接口响应对齐:优化 Auth、MasterAuth、Security、Sms 控制器在短信验证码发送与密码校验时的异常处理与返回格式 - 腾讯云短信SDK:优化 SmsSingleSender::sendWithParam 方法入参默认值 - 双端小程序:优化用户端与师傅端登录页及账号安全中心的密码修改与找回交互逻辑
这个提交包含在:
@@ -87,10 +87,11 @@ class Sms extends Api
|
||||
|
||||
try {
|
||||
$res = SmsService::sendVerifyCode($mobile, $event, $this->request->ip());
|
||||
$this->success('验证码已发送,请注意查收', $res);
|
||||
} catch (\Throwable $e) {
|
||||
$this->error($e->getMessage());
|
||||
return;
|
||||
}
|
||||
$this->success('验证码已发送,请注意查收', $res);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,9 +109,10 @@ class Sms extends Api
|
||||
|
||||
try {
|
||||
SmsService::verifyCode($rawMobile, $captcha, $event, false);
|
||||
$this->success('验证码正确');
|
||||
} catch (\Throwable $e) {
|
||||
$this->error($e->getMessage());
|
||||
return;
|
||||
}
|
||||
$this->success('验证码正确');
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户