Commit e01d3454 authored by zhz's avatar zhz

goods

parent f4bcd92f
...@@ -29,10 +29,10 @@ class GoodsUtil { ...@@ -29,10 +29,10 @@ class GoodsUtil {
} }
if($activities){ if($activities){
if($data = \DAO\SaleGoodsModel::getInstance()->getSaleGoods($storeId,$goodsId)){ if($data = \DAO\SaleGoodsModel::getInstance()->getSaleGoods($storeId,$goodsId)){
return \DAO\SaleGoodsModel::getInstance()->getSalePrice($data,$activities,$array); $price = \DAO\SaleGoodsModel::getInstance()->getSalePrice($data,$activities,$array);
} }
} }
return $goods['goods_price']; return $price ? $price : $goods['goods_price'];
}else{ }else{
$pBundlingService = \Business\Goods\GroupSaleServiceModel::getInstance(); $pBundlingService = \Business\Goods\GroupSaleServiceModel::getInstance();
$pBundling = $pBundlingService->getOnePBundingCache($goodsId,$dbName); $pBundling = $pBundlingService->getOnePBundingCache($goodsId,$dbName);
......
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