| 
					
				 | 
			
			
				@@ -191,7 +191,7 @@ class GoodsService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             self::goodsSkuSet($params, 'insert'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 待上架状态,上架时间大于当前时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if ($params['goods_status'] == 'PENDING' && strtotime($params['goods_on_addtimes']) > time()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                $redis = Redis::connection('listing'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $redis = Redis::connection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $key = date('YmdHi', strtotime($params['goods_on_addtimes'])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $redis->sAdd(Goods::LISTING_KEY_PREFIX . $key, $params['goods_id']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -456,7 +456,7 @@ class GoodsService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $row = Goods::find($data['goods_id']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 上架时间有变动 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if ($data['goods_status'] == 'PENDING' && $row->goods_on_addtimes != $data['goods_on_addtimes']) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                $redis = Redis::connection('listing'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $redis = Redis::connection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // 删掉原来的 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $oldKey = Goods::LISTING_KEY_PREFIX . date('YmdHi', $row->goods_on_addtimes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $redis->srem($oldKey, $data['goods_id']); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -633,7 +633,6 @@ class GoodsService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $data[$col] = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (is_array($item)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                dump($item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $data[$col] = implode(',', $item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if ($item != '' && (strpos(strtolower($columns[$col]), 'varchar') || strpos(strtolower($columns[$col]), 'text'))) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -678,7 +677,7 @@ class GoodsService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static function checkListing() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $key = Goods::LISTING_KEY_PREFIX . date('YmdHi'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $redis = Redis::connection('listing'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $redis = Redis::connection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($redis->exists($key)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $goodsIds = $redis->sMembers($key); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (Goods::whereIn('goods_id', $goodsIds)->update(['goods_status' => 'ON'])) { 
			 |