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"
"jccommon"
"main/constant"
"main/service"
"strings"
"github.com/gin-gonic/gin"
)
@ -67,6 +68,13 @@ func (this *NftApi) Unlock(c *gin.Context) {
f5.RspErr(c, 500, "nft not found")
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{
"c": "BcService",
"a": "nftUnlock",

View File

@ -170,6 +170,13 @@ func (this *RechargeApi) internalBuy(c *gin.Context,
f5.RspErr(c, 3, "server internal error")
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{
"c": "BcService",
"a": "recharge",