Your Name hace 2 años
padre
commit
e2762fb99d
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      tool/stats/lib/Manage.php

+ 6 - 4
tool/stats/lib/Manage.php

@@ -154,6 +154,9 @@ Class Manage
 				if ($v['fdate']) {
 					$fdate = date('Y-m-d H:i',$v['fdate']);
 				}
+				if($v['status']>=7) {
+					$v['price'] = 0;
+				}
 				$refund_status = '';
 		        $refund_cdate = '';
 		        $refund_cash = '';
@@ -242,9 +245,9 @@ Class Manage
 		            // print_R($goods_info);die;
 	                if ($goods_info['price_type'] > 2 && isset($goods_info['goods']) && is_array($goods_info['goods'])) {
 	                	$dj = $this->danjia($goods_info['goods']);
-	                	$heji = 0;
+	                	// $heji = 0;
 	                	
-	                	$heji = $this->total($goods,$v1['num']);
+	                	// $heji = $this->total($goods,$v1['num']);
 
 						foreach ($goods_info['goods'] as $key => $val) {
 							$dnum = round($val['num']*$v1['num'],2);
@@ -261,12 +264,11 @@ Class Manage
 							
 							if ($v['card_code_cash'] && $v['card_code_cash']>0){
 								$card_price = round(($v['card_code_cash']/$v['oprice']*$goods_price),2);
-								// round(($v['card_code_cash']/$v['oprice']*($val['price']*$dnum)),2);
 							} else {
 								$card_price = 0;
 							}
 							$wallet_price = round(($v['wallet_cash']/$v['oprice']*$goods_price),2);
-							// round(($v['wallet_cash']/$v['oprice']*($val['price']*$dnum)),2);
+
 							$goodsfu = 0;
 							if ($v1['discount_id']<=0) {
 								$youhui = 0;