- add conf enableJdStoreWrite
- enable enableEbaiStoreWrite on beta
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/auth"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
type IAuther interface {
|
||||
@@ -71,7 +70,7 @@ func New(notUsed interface{}, token string, w http.ResponseWriter, r *http.Reque
|
||||
}
|
||||
}
|
||||
if err == model.ErrTokenIsInvalid {
|
||||
if beego.BConfig.RunMode != "prod" {
|
||||
if !globals.IsProductEnv() {
|
||||
err = nil
|
||||
} else {
|
||||
errCode = model.ErrCodeTokenIsInvalid
|
||||
|
||||
Reference in New Issue
Block a user