This commit is contained in:
aozhiwei 2024-07-19 13:11:05 +08:00
parent 7e540c2b7a
commit 53ceb4a0cf
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,8 @@ func GetItemIdHeroQuality(netId int32, contractAddress string, tokenId string,
if ds.Next() {
*itemId = q5.ToInt32(ds.GetByName("item_id"))
tokenType := q5.ToInt32(ds.GetByName("token_type"))
if tokenType == jccommon.NFT_TYPE_CFHERO {
if tokenType == jccommon.NFT_TYPE_CFHERO ||
tokenType == jccommon.NFT_TYPE_CFHERO_NORMAL {
f5.GetGoStyleDb().OrmSelectOne(
constant.GAME_DB,
"t_hero",

View File

@ -107,6 +107,7 @@ func (this* repairNft) repairNft(ds *f5.DataSet) bool {
tokenId := ds.GetByName("token_id")
switch q5.ToInt32(ds.GetByName("token_type")) {
case jccommon.NFT_TYPE_CFHERO:
case jccommon.NFT_TYPE_CFHERO_NORMAL:
{
var itemId int32
var quality int32
@ -149,6 +150,7 @@ func (this* repairNft) repairOrder(ds *f5.DataSet) bool {
tokenId := ds.GetByName("token_id")
switch q5.ToInt32(ds.GetByName("token_type")) {
case jccommon.NFT_TYPE_CFHERO:
case jccommon.NFT_TYPE_CFHERO_NORMAL:
{
var itemId int32
var quality int32
@ -192,6 +194,7 @@ func (this* repairNft) repairSale(ds *f5.DataSet) bool {
tokenId := ds.GetByName("token_id")
switch q5.ToInt32(ds.GetByName("token_type")) {
case jccommon.NFT_TYPE_CFHERO:
case jccommon.NFT_TYPE_CFHERO_NORMAL:
{
var itemId int32
var quality int32