he2802 2 년 전
부모
커밋
8e12629b46
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zhongzheng-framework/src/main/java/com/zhongzheng/framework/web/service/WxLoginService.java

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

@@ -1255,7 +1255,7 @@ public class WxLoginService implements IWxLoginService {
         if (user == null) {
             throw new CustomException("您尚未注册,请前往小程序注册");
         }
-        if (!Validator.isNotNull(user.getGzhOpenId())) {
+        if (Validator.isEmpty(user.getGzhOpenId())) {
             user.setGzhOpenId(openId);
             user.setUnionId(unionId);
             iUserService.updateById(user);