Browse Source

loginWx日志添加

hxd 3 months ago
parent
commit
1744d4bc42

+ 2 - 0
portal-service-infrastructure/src/main/java/com/hfln/portal/infrastructure/gateway/impl/UserGatewayImpl.java

@@ -139,7 +139,9 @@ public class UserGatewayImpl implements UserGateway {
             log.info("微信登录返回结果:{}", res);
             JSONObject obj = JSONObject.parseObject(res);
             String openId = Objects.requireNonNull(obj).getString("openid");
+            log.info("openId:{}", openId);
             String unionId = Objects.requireNonNull(obj).getString("unionid");
+            log.info("unionId:{}", unionId);
 
             UserInfoWxRes userInfoWxRes = new UserInfoWxRes();
             userInfoWxRes.setOpenId(openId);