- dont't ignore fake token for dev and test env

This commit is contained in:
gazebo
2019-03-05 14:02:07 +08:00
parent 8a1425c4d0
commit da3a9b8c22

View File

@@ -11,7 +11,6 @@ import (
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
"github.com/astaxie/beego"
)
type IAuther interface {
@@ -81,7 +80,7 @@ func New(rootTask tasksch.ITask, token string, w http.ResponseWriter, r *http.Re
}
}
if err == model.ErrTokenIsInvalid {
if beego.BConfig.RunMode != "prod" {
if false { //beego.BConfig.RunMode != "prod" {
err = nil
} else {
errCode = model.ErrCodeTokenIsInvalid