修改appid和登录逻辑

This commit is contained in:
chenshaohua
2026-04-08 22:08:38 +08:00
parent 8328b10741
commit 5ae52b4c3b
2 changed files with 5 additions and 5 deletions

View File

@@ -631,7 +631,9 @@ public class SysLoginService
if (StringUtils.hasText(phoneUser.getOpenid()) && !openid.equals(phoneUser.getOpenid())) {
System.out.printf("手机号绑定冲突phone:%s, oldOpenid:%s, newOpenid:%s%n",
phoneUser.getPhone(), phoneUser.getOpenid(), openid);
return AjaxResult.error("该手机号已绑定其他微信账号");
//如果手机号一致openid不一致重新注册小程序账号
ajax=handleNewUser(openid,unionid,phoneUser.getPhone(),userType);
return ajax;
}
//修改用户信息
updateAppUserCommon(phoneUser, openid, unionid, userType);