Commit 54132199 authored by hj's avatar hj

更新

parent 04538a31
......@@ -196,7 +196,7 @@ class RhawnProductService
$products = $this->rhawnProductRepository->getProductByPcode($pCode);
if($products){
$products = current($products);
$discount = app(RhawnCustomerRepositoryEloquent::class)->getCustomerDiscountByCusCode($cusCode);
/*$discount = app(RhawnCustomerRepositoryEloquent::class)->getCustomerDiscountByCusCode($cusCode);
if($discount){
$products['m_price'] = $products['p_price'];
if(isset($discount[$products['b_id']])){
......@@ -204,7 +204,7 @@ class RhawnProductService
}else{
$products['p_price'] = $products['p_price'];
}
}
}*/
$promotions = $this->rhawnProductRepository->getProductPromotionByPid($products['p_id']);
$productPromotions = [];
if($promotions){
......
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