瀏覽代碼

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

songfuqiang 1 年之前
父節點
當前提交
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 {