Your Name 3 年之前
父节点
当前提交
5ccc611e84
共有 1 个文件被更改,包括 15 次插入14 次删除
  1. 15 14
      tool/stats/lib/Manage.php

+ 15 - 14
tool/stats/lib/Manage.php

@@ -581,21 +581,22 @@ Class Manage
 	            	}
 	            	
 	            } else {
-	            	$sell_order = Dever::db('shop/sell_order')->find(array('card_code_id'=>$v['sku_id']));
-	            	if ($sell_order) {
-	            		if ($where['types'] == 3 || $where['types'] == -1) {
-	            			$leixing = '使用权益';
-		                	$w = $this->common($sell_order);
-		                	if ($w) {
-		                		$shop_name = $w['shop_name'];
-						        $shop_type = $w['shop_type'];
-						        $shop_sid = $w['shop_sid'];
-						        $order_num = $w['order_num'];
-		                	}
-	            		}
-	                }
+	            	if (isset($v['sku_id']) && $v['sku_id']){
+	            		$sell_order = Dever::db('shop/sell_order')->find(array('card_code_id'=>$v['sku_id']));
+		            	if ($sell_order) {
+		            		if ($where['types'] == 3 || $where['types'] == -1) {
+		            			$leixing = '使用权益';
+			                	$w = $this->common($sell_order);
+			                	if ($w) {
+			                		$shop_name = $w['shop_name'];
+							        $shop_type = $w['shop_type'];
+							        $shop_sid = $w['shop_sid'];
+							        $order_num = $w['order_num'];
+			                	}
+		            		}
+		                }
+	            	}
 	            }
-	            
                 if ($leixing) {
                 	$d = array
 	                (