1
This commit is contained in:
parent
f88de3bcdf
commit
8ba11e42bc
@ -159,6 +159,24 @@ class LogService extends BaseService
|
||||
|
||||
private static function nftInfo($old_nft,$new_nft)
|
||||
{
|
||||
foreach ($old_nft as $k => $v){
|
||||
if ($k == 'hero_id'){
|
||||
$old_nft['item_id'] = $old_nft[$k];
|
||||
}else if ($k == 'gun_id'){
|
||||
$old_nft['item_id'] = $old_nft[$k];
|
||||
}else if($k == 'item_id'){
|
||||
$old_nft['item_id'] = $old_nft[$k];
|
||||
}
|
||||
}
|
||||
foreach ($new_nft as $k => $v){
|
||||
if ($k == 'hero_id'){
|
||||
$new_nft['item_id'] = $new_nft[$k];
|
||||
}else if ($k == 'gun_id'){
|
||||
$new_nft['item_id'] = $new_nft[$k];
|
||||
}else if($k == 'item_id'){
|
||||
$new_nft['item_id'] = $new_nft[$k];
|
||||
}
|
||||
}
|
||||
$info = array(
|
||||
'nft_unique_id' => $old_nft['idx'], //NFT idx
|
||||
'nft_token_id' => $old_nft['token_id']?$old_nft['token_id']:null, //NFT token ID
|
||||
@ -175,6 +193,15 @@ class LogService extends BaseService
|
||||
|
||||
private static function nftProductInfo($nft)
|
||||
{
|
||||
foreach ($nft as $k => $v){
|
||||
if ($k == 'hero_id'){
|
||||
$nft['item_id'] = $nft[$k];
|
||||
}else if ($k == 'gun_id'){
|
||||
$nft['item_id'] = $nft[$k];
|
||||
}else if($k == 'item_id'){
|
||||
$nft['item_id'] = $nft[$k];
|
||||
}
|
||||
}
|
||||
$info = array(
|
||||
'nft_unique_id' => $nft['idx'], //NFT idx
|
||||
'nft_token_id' => $nft['token_id']?$nft['token_id']:null, //NFT token ID
|
||||
|
Loading…
x
Reference in New Issue
Block a user