he2802 2 years ago
parent
commit
21fcc4cab6

+ 1 - 0
zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/WxLoginService.java

@@ -1257,6 +1257,7 @@ public class WxLoginService implements IWxLoginService {
         }
         if (!Validator.isNotNull(user.getGzhOpenId())) {
             user.setGzhOpenId(openId);
+            user.setUnionId(unionId);
             iUserService.updateById(user);
         }
         return user;