添加ResultCode

This commit is contained in:
lifenlong
2021-06-30 15:45:33 +08:00
parent 800437473d
commit 346465630c
18 changed files with 87 additions and 29 deletions

View File

@@ -66,7 +66,7 @@ public class MemberBuyerController {
if (smsUtil.verifyCode(mobile, VerificationEnums.LOGIN, uuid, code)) {
return ResultUtil.data(memberService.mobilePhoneLogin(mobile));
} else {
throw new ServiceException("验证码错误");
throw new ServiceException(ResultCode.VERIFICATION_SMS_ERROR);
}
}