From 8d30b05c5ee35db80c79e86c15b81138ddc4f906 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G8BCEP0\\HP" <2037158277@qq.com> Date: Thu, 9 Sep 2021 15:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=99=BB=E9=99=86=E5=90=8E=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E7=BB=91=E5=AE=9A=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/controller/SysUserController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/xkrs/controller/SysUserController.java b/src/main/java/com/xkrs/controller/SysUserController.java index ba8c094..8bc0534 100644 --- a/src/main/java/com/xkrs/controller/SysUserController.java +++ b/src/main/java/com/xkrs/controller/SysUserController.java @@ -240,4 +240,15 @@ public class SysUserController { return sysUserService.adminUpdatePassword(userId,newPassword,confirmPassword); } + /** + * 微信小程序登陆后判断是否绑定网站账号 + * @param map + * @return + */ + @PostMapping("/findUserByOpenId") + public String findUserByOpenId(@RequestBody Map map){ + String openId = (String) map.get("openId"); + return sysUserService.findUserByOpenId(openId); + } + }