作者 yangfu

登录修改

@@ -11,7 +11,8 @@ Log: @@ -11,7 +11,8 @@ Log:
11 Encoding: plain 11 Encoding: plain
12 Level: debug # info 12 Level: debug # info
13 MaxSize: 1 # 2MB 13 MaxSize: 1 # 2MB
14 - TimeFormat: 2006-01-02 15:04:05.000 14 + TimeFormat: 2006-01-02 15:04:05
  15 + #Rotation: size
15 16
16 SystemAuth: 17 SystemAuth:
17 AccessSecret: digital-platform 18 AccessSecret: digital-platform
@@ -71,9 +71,6 @@ func (l *MiniUserLoginLogic) MiniUserLogin(req *types.MiniUserLoginRequest) (res @@ -71,9 +71,6 @@ func (l *MiniUserLoginLogic) MiniUserLogin(req *types.MiniUserLoginRequest) (res
71 loginInfo.User = users[0] 71 loginInfo.User = users[0]
72 } 72 }
73 } 73 }
74 - if loginInfo.User == nil {  
75 - return nil, xerr.NewErrMsgErr("用户不存在", err)  
76 - }  
77 token, err = generateToken(l.svcCtx, loginInfo.User) 74 token, err = generateToken(l.svcCtx, loginInfo.User)
78 if err != nil { 75 if err != nil {
79 return nil, xerr.NewErrMsgErr("登录失败", err) 76 return nil, xerr.NewErrMsgErr("登录失败", err)