This commit is contained in:
suyl
2021-06-24 16:09:02 +08:00
parent 8993e48ae9
commit bfe94e735a
27 changed files with 54 additions and 4458 deletions

View File

@@ -74,9 +74,10 @@ func New(notUsed interface{}, token string, w http.ResponseWriter, r *http.Reque
// }
}
if err == model.ErrTokenIsInvalid {
if !globals.IsProductEnv() {
err = nil
} else if token == RsmDefultToken {
//if !globals.IsProductEnv() {
// err = nil
//} else
if token == RsmDefultToken {
err = nil
} else {
errCode = model.ErrCodeTokenIsInvalid