This commit is contained in:
aozhiwei 2023-07-31 11:19:47 +08:00
parent 362d1897fb
commit 4a29b72e75
2 changed files with 18 additions and 1 deletions

View File

@ -398,6 +398,7 @@ class GoodsInfo(object):
['buy_gift', '', '购买次数赠品'],
['normal_gift', '', '普通狗赠品'],
['free_type', 0, '免费类型 0:不免费 1:日刷新'],
['shop_icon', 0, '商品图标'],
]
class Goods(object):

View File

@ -147,7 +147,23 @@ class ShopService {
public static function goodsMetaToInfo($goodsMeta)
{
return array(
'item_id' => $goodsMeta['item_id'],
'item_num' => $goodsMeta['item_num'],
'max_amount' => $goodsMeta['max_amount'],
'shop_id' => $goodsMeta['shop_id'],
'shopstage' => $goodsMeta['shopstage'],
'tag' => $goodsMeta['tag'],
'recommend' => $goodsMeta['recommend'],
'token_type' => $goodsMeta['token_type'],
'price' => $goodsMeta['price'],
'discount' => $goodsMeta['discount'],
'limit_type' => $goodsMeta['limit_type'],
'limit_num' => $goodsMeta['limit_num'],
'buy_cond' => $goodsMeta['buy_cond'],
'buy_gift' => $goodsMeta['buy_gift'],
'normal_gift' => $goodsMeta['normal_gift'],
'free_type' => $goodsMeta['free_type'],
'shop_icon' => $goodsMeta['shop_icon'],
);
}