- TrimBlanChar to TrimBlankChar

- error_code.go
This commit is contained in:
gazebo
2018-11-02 14:11:32 +08:00
parent addb300b1a
commit 386ac29ad7
10 changed files with 31 additions and 14 deletions

View File

@@ -5,6 +5,7 @@ import (
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
)
@@ -76,5 +77,5 @@ func GetUserInfo(token string) (loginInfo *LoginInfo, err error) {
if err = globals.Cacher.GetAs(token, loginInfo); err == nil {
return loginInfo, nil
}
return nil, errors.New("token过期或无效请重新登录")
return nil, model.ErrTokenIsInvalid
}