作者 yangfu

登录修改

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