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); + } + }