fix login

This commit is contained in:
liangzai 2025-06-18 01:07:51 +08:00
parent 3a4e75f375
commit 85aed39ff9

View File

@ -61,6 +61,8 @@ func (l *MobileCodeLoginLogic) MobileCodeLogin(req *types.MobileCodeLoginReq) (r
if err != nil {
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "手机登录, 注册用户失败: %+v", err)
}
} else {
userID = user.Id
}
token, err := l.svcCtx.UserService.GeneralUserToken(l.ctx, userID)
if err != nil {