Commit 85c1c560 authored by hangjun83's avatar hangjun83

百化产品接口更新

parent b0b526b9
......@@ -37,7 +37,6 @@ class ProductsTransformer extends TransformerAbstract
$temp['delivery'] = $product['p_tod'];//货期
}
$temp['price'] = $product['p_price'];//单价
$temp['market_price'] = $product['p_price'];//目录价格
if($product['c_if_dangers'] == 1){
$temp['if_dangers'] = 1;//是否危化品
}else{
......@@ -46,17 +45,10 @@ class ProductsTransformer extends TransformerAbstract
if($product['p_status'] == 0 || $product['p_show'] == 0){
$temp['status'] = 0;
$temp['price'] = 0;
$temp['market_price'] = 0;
}else{
$temp['status'] = 1;
}
$temp['pack'] = $product['p_pack'];//包装规格
$temp['weight'] = $product['p_weight'];//产品重量kg
if($product['p_tod'] == '现货'){
$temp['tag'] = '当天发货';
}else{
$temp['tag'] = '';
}
array_push($productTransReturn,$temp);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment