aa
This commit is contained in:
@@ -25,6 +25,8 @@ type Context struct {
|
||||
|
||||
const (
|
||||
MaxUserNameLen = 30
|
||||
|
||||
RsmDefultToken = "rushSkyMonkeyToken_20201203"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -74,6 +76,8 @@ 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 {
|
||||
err = nil
|
||||
} else {
|
||||
errCode = model.ErrCodeTokenIsInvalid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user