Bladeren bron

用户模块 登录逻辑判断修复(memberId赋值异常)

songfuqiang 1 jaar geleden
bovenliggende
commit
a9c2398c83

+ 8 - 0
backend-core/src/main/java/cn/kdan/pdf/backend/core/service/impl/AuthServiceImpl.java

@@ -339,6 +339,14 @@ public class AuthServiceImpl implements AuthService {
                         memberVo.setTimeZone(member.getTimeZone());
                         memberId = member.getId();
                         memberVo.setAvatarUrl(avatarService.selectAvatarByMemberId(memberId));
+                    } else{
+                        memberVo.setName(member.getName());
+                        memberVo.setEmail(member.getEmail());
+                        memberVo.setPhone(member.getPhone());
+                        memberVo.setPhoneZone(member.getPhoneZone());
+                        memberVo.setTimeZone(member.getTimeZone());
+                        memberId = member.getId();
+                        memberVo.setAvatarUrl(avatarService.selectAvatarByMemberId(memberId));
                     }
                 }
             }else {