|
|
@@ -114,8 +114,11 @@ public class StoreUserController {
|
|
|
@GetMapping("/changePhoneVerification")
|
|
|
public R<Map<String, String>> changePhoneVerification(String phone, String oldPassword, String verificationCode) {
|
|
|
log.info("StoreUserController.changePhoneVerification?phone={}&oldPassword={}&verificationCode={}", phone, oldPassword, verificationCode);
|
|
|
- return R.data(storeUserService.changePhoneVerification(phone, oldPassword, verificationCode));
|
|
|
-
|
|
|
+ try {
|
|
|
+ return R.data(storeUserService.changePhoneVerification(phone, oldPassword, verificationCode));
|
|
|
+ } catch (Exception e) {
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@ApiOperation("修改用户信息")
|