mirror of https://github.com/jeecgboot/jeecg-boot
账户设置->修改手机号:获取验证码接口 404 错误 #7587
parent
c88bfcf35a
commit
44f7075316
|
@ -1844,4 +1844,19 @@ public class SysUserController {
|
||||||
public Result<?> importAppUser(HttpServletRequest request, HttpServletResponse response)throws IOException {
|
public Result<?> importAppUser(HttpServletRequest request, HttpServletResponse response)throws IOException {
|
||||||
return sysUserService.importAppUser(request);
|
return sysUserService.importAppUser(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送短信验证码接口(修改手机号)
|
||||||
|
*
|
||||||
|
* @param jsonObject
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping(value = "/sendChangePhoneSms")
|
||||||
|
public Result<String> sendChangePhoneSms(@RequestBody JSONObject jsonObject, HttpServletRequest request) {
|
||||||
|
//获取登录用户名
|
||||||
|
String username = JwtUtil.getUserNameByToken(request);
|
||||||
|
String ipAddress = IpUtils.getIpAddr(request);
|
||||||
|
sysUserService.sendChangePhoneSms(jsonObject, username, ipAddress);
|
||||||
|
return Result.ok("发送验证码成功!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue