更新
This commit is contained in:
parent
f17ffd1eba
commit
2eab599611
@ -550,25 +550,8 @@ class StoreOrderRepository extends BaseRepository
|
||||
return $cart['activeSku']['active_price'];
|
||||
// 更新调货价格
|
||||
} else if ($cart['product_type'] == '98') {
|
||||
// if ($cart['source_id'] > 0) {
|
||||
// $resale_find = Db::name('resale')->where('community_id', $cart['source_id'])->where('product_attr_unique', $cart['product_attr_unique'])->find();
|
||||
// if ($resale_find &&$resale_find['status']==0) {
|
||||
// return $resale_find['price'];
|
||||
// }else if($resale_find['status']==1){
|
||||
// throw new ValidateException('商品已转售');
|
||||
// }
|
||||
// else {
|
||||
// throw new ValidateException('转售商品数据异常');
|
||||
// }
|
||||
// } else {
|
||||
// return $cart['productAttr']['price'];
|
||||
// }
|
||||
if (in_array($cart['source'],[9,10,11,12,13,103])) {
|
||||
// if($type==0){
|
||||
// return $cart['productAttr']['price'];
|
||||
// }else{
|
||||
return $cart['productAttr']['procure_price'];
|
||||
// }
|
||||
if (in_array($cart['source'],[9,10,11,12,13])) {
|
||||
return $cart['productAttr']['procure_price'];
|
||||
} else {
|
||||
return $cart['productAttr']['price'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user