|
|
@@ -53,7 +53,7 @@ public class WeChatUserServiceImpl implements WeChatUserService {
|
|
53
|
53
|
private IdentityAuthenticationMapper identityAuthenticationMapper;
|
|
54
|
54
|
|
|
55
|
55
|
@Override
|
|
56
|
|
- public String sendCode(WeChatUserVO userVO) {
|
|
|
56
|
+ public AjaxResult sendCode(WeChatUserVO userVO) {
|
|
57
|
57
|
|
|
58
|
58
|
Random random = new Random();
|
|
59
|
59
|
String code = "";
|
|
|
@@ -69,9 +69,10 @@ public class WeChatUserServiceImpl implements WeChatUserService {
|
|
69
|
69
|
Boolean flag = SmsUtils.sendSms(request);
|
|
70
|
70
|
if(flag){
|
|
71
|
71
|
setCodeCache(userVO.getPhone(),code);
|
|
72
|
|
- return "短信发送成功";
|
|
|
72
|
+ return AjaxResult.success("短信发送成功");
|
|
|
73
|
+ }else {
|
|
|
74
|
+ return AjaxResult.warn("短信发送失败");
|
|
73
|
75
|
}
|
|
74
|
|
- return "短信发送失败";
|
|
75
|
76
|
}
|
|
76
|
77
|
/**
|
|
77
|
78
|
* 设置验证码缓存
|