短信功能完善
This commit is contained in:
parent
c0fd7885dc
commit
ce2396aafc
|
|
@ -165,7 +165,7 @@ public class SysSmsServiceImpl implements ISysSmsService {
|
|||
// 存储验证码至Redis中,键值为:code_15588886157 , 有效期5,时间颗粒度为MINUTES:分钟
|
||||
redisService.setCacheObject("code_" + phone, code, 5L, TimeUnit.MINUTES);
|
||||
// return success("手机号:" + phone + ",用户登录验证码:" + code + ",返回结果:" + body);
|
||||
return success("验证码发送成功",body);
|
||||
return success("验证码发送成功:" + body);
|
||||
} catch (Exception e) {
|
||||
return AjaxResult.error("发送失败:" + e.getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue