- enable token check.
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/auth"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
@@ -53,7 +54,7 @@ func New(rootTask tasksch.ITask, token string, w http.ResponseWriter, r *http.Re
|
||||
ctx.userInfo, err = auth.GetUserInfo(token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("token is invalid, token:%s", token)
|
||||
// return nil, model.ErrCodeTokenIsInvalid, err
|
||||
return nil, model.ErrCodeTokenIsInvalid, err
|
||||
}
|
||||
return ctx, "", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user