diff --git a/doc/_common.py b/doc/_common.py index 6ce2d892..4ac6bc2c 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -335,6 +335,7 @@ class Item(object): ['item_uniid', 0, '道具唯一id'], ['item_id', 0, '道具id'], ['item_num', 0, '道具数量'], + ['is_new', 0, '0:展示红点 1:不用展示'], ['!attr', [Attr()], '属性'], ] @@ -891,6 +892,7 @@ class Chip(object): ['!rand_attr', [ChipAttr()], '属性'], ['tags', '', '1:Gen状态'], ['quality', '', '品阶'], + ['is_new', '', '0:展示红点 1:不用展示'], ] class ChipPro(object): diff --git a/webapp/models/Bag.php b/webapp/models/Bag.php index e843caf0..fd072e96 100644 --- a/webapp/models/Bag.php +++ b/webapp/models/Bag.php @@ -100,6 +100,7 @@ class Bag extends BaseModel { 'attr' => emptyReplace(json_decode($row['rand_attr'], true), array()), 'today_get_gold' => $todayGetGold, 'last_get_gold_time' => $lastGetGoldTime, + 'is_new' => $row['is_new'], ); } diff --git a/webapp/models/Chip.php b/webapp/models/Chip.php index 6e6b74b7..5f2afd38 100644 --- a/webapp/models/Chip.php +++ b/webapp/models/Chip.php @@ -196,6 +196,7 @@ class Chip extends BaseModel 'rand_attr'=> $rand_attr, 'quality'=> $row['quality'], 'attribute' => $attribute, + 'is_new' => $row['is_new'], ); $dto['chip_name'] = mt\Item::get($row['item_id'])?mt\Item::get($row['item_id'])['name']:'XXX'; // $nft_address = '';