From 47c0f1aafce2b4763ee2cd9e99f7b1f1b887e554 Mon Sep 17 00:00:00 2001 From: yangduo Date: Fri, 13 Sep 2024 14:23:02 +0800 Subject: [PATCH] 1 --- server/marketserver/api/v1/vip/vip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/marketserver/api/v1/vip/vip.go b/server/marketserver/api/v1/vip/vip.go index 9b447dec..279ba229 100644 --- a/server/marketserver/api/v1/vip/vip.go +++ b/server/marketserver/api/v1/vip/vip.go @@ -73,7 +73,7 @@ func (this *VIPApi) Bind(c *gin.Context) { info["account_address"] = "" service.JwtAuth.JwtAuthHandle(reqObj.Passport_jwt, &info) passport_addr := info["account_address"].(string) - if passport_addr == "" { + if passport_addr == "" || accountAddress == passport_addr { f5.RspErr(c, 1, "bad request passport") return } @@ -138,4 +138,4 @@ func (this *VIPApi) Bind(c *gin.Context) { } f5.RspErr(c, 0, "") -} +} \ No newline at end of file