diff --git a/server/jccommon/constant.go b/server/jccommon/constant.go index 73c37d05..f079102d 100644 --- a/server/jccommon/constant.go +++ b/server/jccommon/constant.go @@ -103,6 +103,7 @@ const ( ) const ( + BC_POLY_POLY_TG = 5 BC_POLY_POLY_METAKASK = 13 ) diff --git a/server/wheelserver/middleware/jwtauth.go b/server/wheelserver/middleware/jwtauth.go index cdea38f9..001e46fd 100644 --- a/server/wheelserver/middleware/jwtauth.go +++ b/server/wheelserver/middleware/jwtauth.go @@ -86,7 +86,7 @@ func internalMetaMaskJwtAuth(c *gin.Context, jwtToken string) { c.Abort() return } - if jsonRspObj.Decoded.Plat != jccommon.BC_POLY_POLY_METAKASK { + if jsonRspObj.Decoded.Plat != jccommon.BC_POLY_POLY_TG { rspObj.ErrCode = 501 rspObj.ErrMsg = "not support this platform" c.JSON(200, rspObj)