Browse Source

涨价方式调整

shish 6 years ago
parent
commit
817bf67467
1 changed files with 11 additions and 11 deletions
  1. 11 11
      common/services/xhGoodsSettingService.php

+ 11 - 11
common/services/xhGoodsSettingService.php

@@ -39,17 +39,17 @@ class xhGoodsSettingService {
 			$goods['goodsIntroduce']	= $set['goodsIntroduce'];
 			$goods['riseType']			= $noRise;
 			$goods['riseAmount']		= $riseAmount;
-			if($set['riseType'] != $noRise){
-				$now					= time();
-				if($now > $set['startRiseTime'] && $now < $set['endRiseTime']){
-					if($set['riseType'] == $byPercent){//百分比
-						$percent = $riseAmount / 100;
-						$goods['price']	= floor($goods['price']*(1+$percent));
-					}else{//金额
-						$goods['price']	= stringUtil::calcAdd($goods['price'], $riseAmount);
-					}
-				}
-			}
+//			if($set['riseType'] != $noRise){
+//				$now					= time();
+//				if($now > $set['startRiseTime'] && $now < $set['endRiseTime']){
+//					if($set['riseType'] == $byPercent){//百分比
+//						$percent = $riseAmount / 100;
+//						$goods['price']	= floor($goods['price']*(1+$percent));
+//					}else{//金额
+//						$goods['price']	= stringUtil::calcAdd($goods['price'], $riseAmount);
+//					}
+//				}
+//			}
 		}
 		return $goods;
 	}