From 44f70753161894d0e700a682698e256bccab8282 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Mon, 16 Dec 2024 15:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E6=88=B7=E8=AE=BE=E7=BD=AE->=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7=EF=BC=9A=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E6=8E=A5=E5=8F=A3=20404=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20#7587?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/SysUserController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java index 242d5a4f..013f7301 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java @@ -1844,4 +1844,19 @@ public class SysUserController { public Result importAppUser(HttpServletRequest request, HttpServletResponse response)throws IOException { return sysUserService.importAppUser(request); } + + /** + * 发送短信验证码接口(修改手机号) + * + * @param jsonObject + * @return + */ + @PostMapping(value = "/sendChangePhoneSms") + public Result sendChangePhoneSms(@RequestBody JSONObject jsonObject, HttpServletRequest request) { + //获取登录用户名 + String username = JwtUtil.getUserNameByToken(request); + String ipAddress = IpUtils.getIpAddr(request); + sysUserService.sendChangePhoneSms(jsonObject, username, ipAddress); + return Result.ok("发送验证码成功!"); + } }