Skip to content

Commit

Permalink
缺少修改手机号接口
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Jan 3, 2025
1 parent 4d058e1 commit b0880c3
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1845,6 +1845,20 @@ public Result<?> importAppUser(HttpServletRequest request, HttpServletResponse r
return sysUserService.importAppUser(request);
}

/**
* 更改手机号(敲敲云个人设置专用)
*
* @param json
* @param request
*/
@PutMapping("/changePhone")
public Result<String> changePhone(@RequestBody JSONObject json, HttpServletRequest request){
//获取登录用户名
String username = JwtUtil.getUserNameByToken(request);
sysUserService.changePhone(json,username);
return Result.ok("修改手机号成功!");
}

/**
* 发送短信验证码接口(修改手机号)
*
Expand Down

0 comments on commit b0880c3

Please sign in to comment.