This commit is contained in:
yangduo 2024-09-13 14:23:02 +08:00
parent 87dd2018b5
commit 47c0f1aafc

View File

@ -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, "")
}
}