Commit 1546e4e5 authored by hangjun83's avatar hangjun83

openapi 1.1

parent b56527f2
......@@ -56,8 +56,8 @@ class RhawnOrdersService
$promotions = $productRepository->getProductPromotionByPid($productInfo['p_id']);
if($promotions){
foreach($promotions as $promotion){
if($promotion['pt_discount'] != 0){
$productInfo['p_discount'] = round($promotion['pt_discount'] * $productInfo['p_discount']);
if($promotion->pt_discount != 0){
$productInfo['p_discount'] = round($promotion->pt_discount * $productInfo['p_discount']);
}
}
}
......
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