|
@@ -82,10 +82,11 @@ func (l *LoginLogic) Login(req *types.LoginReq) (resp *types.LoginResp, err erro
|
|
|
//set_cookie.NewFastGpt(l.svcCtx, fastgptLogic)
|
|
|
fastgptLogic := fastgpt.NewSetTokenLogic(l.ctx, l.svcCtx, l.rw)
|
|
|
//userId := *user.Id
|
|
|
- _, err = fastgptLogic.SetTokenByUserId(*user.Id)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
+ //静默执行
|
|
|
+ _, _ = fastgptLogic.SetTokenByUserId(*user.Id)
|
|
|
+ //if err != nil {
|
|
|
+ // return nil, err
|
|
|
+ //}
|
|
|
resp = &types.LoginResp{
|
|
|
BaseDataInfo: types.BaseDataInfo{Msg: errormsg.Success},
|
|
|
Data: types.LoginInfo{
|