Commit 54132199 authored by hj's avatar hj

更新

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