Your Name 3 lat temu
rodzic
commit
45aba96855
1 zmienionych plików z 17 dodań i 4 usunięć
  1. 17 4
      tool/stats/lib/Manage.php

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

@@ -505,6 +505,19 @@ Class Manage
 				if ($v['cdate']) {
 					$cdate = date('Y-m-d H:i',$v['cdate']);
 				}
+				$total_num = '';
+				if(isset($v['total_num']) && $v['total_num']) {
+					$total_num = $v['total_num'];
+				}
+				$price = '';
+				if (isset($v['price']) && $v['price']) {
+					$price = $v['price'];
+				}
+	            $cash = '';
+	            if (isset($v['cash']) && $v['cash']) {
+	            	$cash = $v['cash'];
+	            }
+			            
 				if ($where['types'] == 1 || $where['types'] == -1) {
 					$leixing = '发放权益';
 				}
@@ -611,16 +624,16 @@ Class Manage
 	                	$member_mobile,
 	                	$card,
 	                	$leixing,
-	                	$v['total_num'],
-	                	$v['price'],
-			            $v['cash'],
+	                	$total_num,
+	                	$price,
+			            $cash,
 			            $shop_type,
 			            $shop_sid,
 			            $shop_name,
 			            $order_num,
 			            $desc,
 		            	'',
-		            	date('Y-m-d H:i',$v['cdate']),
+		            	$cdate,
 		                $member_cdate,
 		                $youxiao,
 	                );