Prechádzať zdrojové kódy

登录逻辑和微信支付下单

Althars123 2 rokov pred
rodič
commit
9748519444

+ 1 - 1
sdjk-framework/src/main/java/com/miaxis/framework/web/service/UserDetailsServiceImpl.java

@@ -69,7 +69,7 @@ public class UserDetailsServiceImpl implements UserDetailsService
                 //由于之前没有保存用户unionid,只有openid,所以这里判定两个都不存在才不存在用户
                 UserInfo userInfoGetByUnionId = userService.getStudentByUnionId(identification);
                 String openid = (String)ServletUtils.getRequest().getAttribute("openid");
-                UserInfo userInfoGetByOpenId = userService.getStudentByUnionId(openid);
+                UserInfo userInfoGetByOpenId = userService.getStudentByOpenId(openid);
                 String third = (String)ServletUtils.getRequest().getAttribute("third");
                 if (userInfoGetByUnionId == null && userInfoGetByOpenId == null) {
                     UserInfo userInfo = new UserInfo();