This commit is contained in:
hujiabin 2022-12-08 17:36:20 +08:00
parent 82f1da56b3
commit 99b3ac21c6
3 changed files with 7 additions and 0 deletions

View File

@ -141,6 +141,7 @@ class Chip extends BaseModel
$row['rand_attr'] = $attrs;
$row['today_get_gold'] = $todayGetGold;
$row['last_get_gold_time'] = $lastGetGoldTime;
$row['chip_name'] = mt\Item::get($row['item_id'])?mt\Item::get($row['item_id'])['name']:'XXX';
// $row['belong_to_item_id'] = self::belongsToWhereOld($row);
$nft_address = '';
if ($row['token_id']){

View File

@ -641,7 +641,9 @@ class Gun extends BaseModel {
$itemMeta = mt\Item::get($row['gun_id']);
$baseAttr=[];
$attrPro=[];
$gun_name = 'XXX';
if ($itemMeta) {
$gun_name = $itemMeta['name'];
$baseAttr = mt\Equip::getGunBaseAttrs($itemMeta['relationship']);
$attrPro1=[];
if ($row['gun_lv']>1){
@ -697,6 +699,7 @@ class Gun extends BaseModel {
'idx' => $row['idx'],
'token_id' => $row['token_id'],
'gun_uniid' => $row['idx'],
'gun_name' => $gun_name,
'gun_id' => $row['gun_id'],
'gun_lv' => $row['gun_lv'],
'state' => $row['state'],

View File

@ -688,8 +688,10 @@ class Hero extends BaseModel {
}
$baseAttr=[];
$attrPro=[];
$hero_name = 'XXX';
$heroMeta = mt\Hero::get($row['hero_id']);
if ($heroMeta) {
$hero_name = $heroMeta['name'];
$baseAttr = mt\Hero::getHeroAttr($heroMeta);
$attrPro1=[];
if ($row['hero_lv']>1){
@ -745,6 +747,7 @@ class Hero extends BaseModel {
'idx' => $row['idx'],
'token_id' => $row['token_id'],
'hero_uniid' => $row['idx'],
'hero_name' => $hero_name,
'hero_id' => $row['hero_id'],
'hero_lv' => $row['hero_lv'],
'hero_tili' => $row['hero_tili'],