1
This commit is contained in:
parent
f88de3bcdf
commit
8ba11e42bc
@ -159,13 +159,31 @@ 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
|
||||
'nft_item_id' => $old_nft['item_id']?$old_nft['item_id']:null, //NFT item ID
|
||||
'nft_ quality' => $old_nft['quality'] ? $old_nft['quality'] : null, //NFT品阶
|
||||
'nft_quality' => $old_nft['quality'] ? $old_nft['quality'] : null, //NFT品阶
|
||||
'nft_level' => $old_nft['level'] ? $old_nft['level'] : null, //NFT等级
|
||||
'nft_ quality2' => $new_nft['quality'] ? $new_nft['quality'] : null, //NFT品阶2
|
||||
'nft_quality2' => $new_nft['quality'] ? $new_nft['quality'] : null, //NFT品阶2
|
||||
'nft_level2' => $new_nft['level'] ? $new_nft['level'] : null, //NFT等级2
|
||||
'nft_info' => json_encode($old_nft),
|
||||
'new_nft' => json_encode($new_nft)
|
||||
@ -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