1
This commit is contained in:
parent
7e540c2b7a
commit
53ceb4a0cf
@ -24,7 +24,8 @@ func GetItemIdHeroQuality(netId int32, contractAddress string, tokenId string,
|
|||||||
if ds.Next() {
|
if ds.Next() {
|
||||||
*itemId = q5.ToInt32(ds.GetByName("item_id"))
|
*itemId = q5.ToInt32(ds.GetByName("item_id"))
|
||||||
tokenType := q5.ToInt32(ds.GetByName("token_type"))
|
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(
|
f5.GetGoStyleDb().OrmSelectOne(
|
||||||
constant.GAME_DB,
|
constant.GAME_DB,
|
||||||
"t_hero",
|
"t_hero",
|
||||||
|
@ -107,6 +107,7 @@ func (this* repairNft) repairNft(ds *f5.DataSet) bool {
|
|||||||
tokenId := ds.GetByName("token_id")
|
tokenId := ds.GetByName("token_id")
|
||||||
switch q5.ToInt32(ds.GetByName("token_type")) {
|
switch q5.ToInt32(ds.GetByName("token_type")) {
|
||||||
case jccommon.NFT_TYPE_CFHERO:
|
case jccommon.NFT_TYPE_CFHERO:
|
||||||
|
case jccommon.NFT_TYPE_CFHERO_NORMAL:
|
||||||
{
|
{
|
||||||
var itemId int32
|
var itemId int32
|
||||||
var quality int32
|
var quality int32
|
||||||
@ -149,6 +150,7 @@ func (this* repairNft) repairOrder(ds *f5.DataSet) bool {
|
|||||||
tokenId := ds.GetByName("token_id")
|
tokenId := ds.GetByName("token_id")
|
||||||
switch q5.ToInt32(ds.GetByName("token_type")) {
|
switch q5.ToInt32(ds.GetByName("token_type")) {
|
||||||
case jccommon.NFT_TYPE_CFHERO:
|
case jccommon.NFT_TYPE_CFHERO:
|
||||||
|
case jccommon.NFT_TYPE_CFHERO_NORMAL:
|
||||||
{
|
{
|
||||||
var itemId int32
|
var itemId int32
|
||||||
var quality int32
|
var quality int32
|
||||||
@ -192,6 +194,7 @@ func (this* repairNft) repairSale(ds *f5.DataSet) bool {
|
|||||||
tokenId := ds.GetByName("token_id")
|
tokenId := ds.GetByName("token_id")
|
||||||
switch q5.ToInt32(ds.GetByName("token_type")) {
|
switch q5.ToInt32(ds.GetByName("token_type")) {
|
||||||
case jccommon.NFT_TYPE_CFHERO:
|
case jccommon.NFT_TYPE_CFHERO:
|
||||||
|
case jccommon.NFT_TYPE_CFHERO_NORMAL:
|
||||||
{
|
{
|
||||||
var itemId int32
|
var itemId int32
|
||||||
var quality int32
|
var quality int32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user