解决微信小程序中绑定用户的账号的bug

This commit is contained in:
jishenghua
2026-01-15 10:24:43 +08:00
parent ea660f0836
commit 2437814951

View File

@@ -962,7 +962,7 @@ public class UserService {
} }
public int weixinBind(String loginName, String password, String weixinCode) throws Exception { public int weixinBind(String loginName, String password, String weixinCode) throws Exception {
String weixinUrl = platformConfigService.getPlatformConfigByKey("weixinUrl").getPlatformValue(); String weixinUrl = platformConfigService.getPlatformConfigByKey("weixinUrl").getPlatformValue() + BusinessConstants.WEIXIN_LOGIN;
String weixinAppid = platformConfigService.getPlatformConfigByKey("weixinAppid").getPlatformValue(); String weixinAppid = platformConfigService.getPlatformConfigByKey("weixinAppid").getPlatformValue();
String weixinSecret = platformConfigService.getPlatformConfigByKey("weixinSecret").getPlatformValue(); String weixinSecret = platformConfigService.getPlatformConfigByKey("weixinSecret").getPlatformValue();
String url = weixinUrl + "?appid=" + weixinAppid + "&secret=" + weixinSecret + "&js_code=" + weixinCode String url = weixinUrl + "?appid=" + weixinAppid + "&secret=" + weixinSecret + "&js_code=" + weixinCode