1
This commit is contained in:
parent
82f1da56b3
commit
99b3ac21c6
@ -141,6 +141,7 @@ class Chip extends BaseModel
|
|||||||
$row['rand_attr'] = $attrs;
|
$row['rand_attr'] = $attrs;
|
||||||
$row['today_get_gold'] = $todayGetGold;
|
$row['today_get_gold'] = $todayGetGold;
|
||||||
$row['last_get_gold_time'] = $lastGetGoldTime;
|
$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);
|
// $row['belong_to_item_id'] = self::belongsToWhereOld($row);
|
||||||
$nft_address = '';
|
$nft_address = '';
|
||||||
if ($row['token_id']){
|
if ($row['token_id']){
|
||||||
|
@ -641,7 +641,9 @@ class Gun extends BaseModel {
|
|||||||
$itemMeta = mt\Item::get($row['gun_id']);
|
$itemMeta = mt\Item::get($row['gun_id']);
|
||||||
$baseAttr=[];
|
$baseAttr=[];
|
||||||
$attrPro=[];
|
$attrPro=[];
|
||||||
|
$gun_name = 'XXX';
|
||||||
if ($itemMeta) {
|
if ($itemMeta) {
|
||||||
|
$gun_name = $itemMeta['name'];
|
||||||
$baseAttr = mt\Equip::getGunBaseAttrs($itemMeta['relationship']);
|
$baseAttr = mt\Equip::getGunBaseAttrs($itemMeta['relationship']);
|
||||||
$attrPro1=[];
|
$attrPro1=[];
|
||||||
if ($row['gun_lv']>1){
|
if ($row['gun_lv']>1){
|
||||||
@ -697,6 +699,7 @@ class Gun extends BaseModel {
|
|||||||
'idx' => $row['idx'],
|
'idx' => $row['idx'],
|
||||||
'token_id' => $row['token_id'],
|
'token_id' => $row['token_id'],
|
||||||
'gun_uniid' => $row['idx'],
|
'gun_uniid' => $row['idx'],
|
||||||
|
'gun_name' => $gun_name,
|
||||||
'gun_id' => $row['gun_id'],
|
'gun_id' => $row['gun_id'],
|
||||||
'gun_lv' => $row['gun_lv'],
|
'gun_lv' => $row['gun_lv'],
|
||||||
'state' => $row['state'],
|
'state' => $row['state'],
|
||||||
|
@ -688,8 +688,10 @@ class Hero extends BaseModel {
|
|||||||
}
|
}
|
||||||
$baseAttr=[];
|
$baseAttr=[];
|
||||||
$attrPro=[];
|
$attrPro=[];
|
||||||
|
$hero_name = 'XXX';
|
||||||
$heroMeta = mt\Hero::get($row['hero_id']);
|
$heroMeta = mt\Hero::get($row['hero_id']);
|
||||||
if ($heroMeta) {
|
if ($heroMeta) {
|
||||||
|
$hero_name = $heroMeta['name'];
|
||||||
$baseAttr = mt\Hero::getHeroAttr($heroMeta);
|
$baseAttr = mt\Hero::getHeroAttr($heroMeta);
|
||||||
$attrPro1=[];
|
$attrPro1=[];
|
||||||
if ($row['hero_lv']>1){
|
if ($row['hero_lv']>1){
|
||||||
@ -745,6 +747,7 @@ class Hero extends BaseModel {
|
|||||||
'idx' => $row['idx'],
|
'idx' => $row['idx'],
|
||||||
'token_id' => $row['token_id'],
|
'token_id' => $row['token_id'],
|
||||||
'hero_uniid' => $row['idx'],
|
'hero_uniid' => $row['idx'],
|
||||||
|
'hero_name' => $hero_name,
|
||||||
'hero_id' => $row['hero_id'],
|
'hero_id' => $row['hero_id'],
|
||||||
'hero_lv' => $row['hero_lv'],
|
'hero_lv' => $row['hero_lv'],
|
||||||
'hero_tili' => $row['hero_tili'],
|
'hero_tili' => $row['hero_tili'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user