1
This commit is contained in:
parent
13f17e49e0
commit
f7395cc45c
@ -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",
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user