|
@@ -251,13 +251,13 @@ public class AuthServiceImpl implements AuthService {
|
|
|
|
|
|
// 超级管理员短信验证
|
|
|
if (isSuperAdmin(user)) {
|
|
|
+ String phone = PropertiesUtil.getString("$login.admin.phone");
|
|
|
// 验证码不为空时,校验验证码
|
|
|
if (StringUtils.isNotBlank(smsCode)) {
|
|
|
- smsCodeService.checkSmsCode(accountValue, smsCode);
|
|
|
+ smsCodeService.checkSmsCode(phone, smsCode);
|
|
|
}
|
|
|
// 验证码为空时,发送验证码
|
|
|
else {
|
|
|
- String phone = PropertiesUtil.getString("$login.admin.phone");
|
|
|
smsCodeService.sendSmsCode(phone);
|
|
|
throw new StatusException("B-001100", "请输入短信验证码");
|
|
|
}
|