1
This commit is contained in:
parent
82f1da56b3
commit
99b3ac21c6
@ -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']){
|
||||
|
@ -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'],
|
||||
|
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user