添加了微信小程序登陆后判断是否绑定网站账号的接口

This commit is contained in:
DESKTOP-G8BCEP0\HP 2021-09-09 15:08:53 +08:00
parent 092ab59079
commit 8d30b05c5e

View File

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