1
This commit is contained in:
parent
362d1897fb
commit
4a29b72e75
@ -398,6 +398,7 @@ class GoodsInfo(object):
|
||||
['buy_gift', '', '购买次数赠品'],
|
||||
['normal_gift', '', '普通狗赠品'],
|
||||
['free_type', 0, '免费类型 0:不免费 1:日刷新'],
|
||||
['shop_icon', 0, '商品图标'],
|
||||
]
|
||||
|
||||
class Goods(object):
|
||||
|
@ -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'],
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user