This commit is contained in:
aozhiwei 2024-11-05 17:38:22 +08:00
parent 98b0743778
commit a2f52ca607
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ const (
) )
const ( const (
BC_POLY_POLY_TG = 5
BC_POLY_POLY_METAKASK = 13 BC_POLY_POLY_METAKASK = 13
) )

View File

@ -86,7 +86,7 @@ func internalMetaMaskJwtAuth(c *gin.Context, jwtToken string) {
c.Abort() c.Abort()
return return
} }
if jsonRspObj.Decoded.Plat != jccommon.BC_POLY_POLY_METAKASK { if jsonRspObj.Decoded.Plat != jccommon.BC_POLY_POLY_TG {
rspObj.ErrCode = 501 rspObj.ErrCode = 501
rspObj.ErrMsg = "not support this platform" rspObj.ErrMsg = "not support this platform"
c.JSON(200, rspObj) c.JSON(200, rspObj)