This commit is contained in:
aozhiwei 2024-08-23 16:30:40 +08:00
parent 13f17e49e0
commit f7395cc45c
2 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import (
"main/mt" "main/mt"
"jccommon" "jccommon"
"main/constant" "main/constant"
"main/service"
"strings" "strings"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
@ -67,6 +68,13 @@ func (this *NftApi) Unlock(c *gin.Context) {
f5.RspErr(c, 500, "nft not found") f5.RspErr(c, 500, "nft not found")
return return
} }
if ok, err := service.User.InBlackList(accountAddress); err != nil {
f5.RspErr(c, 500, "server internal error")
return
} else if ok {
f5.RspErr(c, 501, "illegal user")
return
}
params := map[string]string{ params := map[string]string{
"c": "BcService", "c": "BcService",
"a": "nftUnlock", "a": "nftUnlock",

View File

@ -170,6 +170,13 @@ func (this *RechargeApi) internalBuy(c *gin.Context,
f5.RspErr(c, 3, "server internal error") f5.RspErr(c, 3, "server internal error")
return return
} }
if ok, err := service.User.InBlackList(accountAddress); err != nil {
f5.RspErr(c, 500, "server internal error")
return
} else if ok {
f5.RspErr(c, 501, "illegal user")
return
}
params := map[string]string{ params := map[string]string{
"c": "BcService", "c": "BcService",
"a": "recharge", "a": "recharge",