| 
					
				 | 
			
			
				@@ -228,7 +228,7 @@ class Order extends Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $data['userId'] = $userId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Hook::listen('create_order_before', $params, $data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        list($products, $delivery, $coupon, $baseProductInfos, $address, $orderPrice, $specs, $numbers) = $params; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        list($products, $delivery, $coupon, $baseProductInfos, $address, $orderPrice,$ordershouyi, $specs, $numbers) = $params; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 获取雪花算法分布式id,方便以后扩展 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $snowflake = new Snowflake(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -285,12 +285,12 @@ class Order extends Model 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'flash_id' => $data['flash_id'] ?? 0, // 秒杀id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //追加 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'user_product'=> $userId.'_'.$product['id'],//为了提高group速度,合二为一 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'pifa_number' => $product['pifa_number'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'pifa_price'  => $product['pifa_price'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'pifa_shouyi' => $product['pifa_shouyi'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'pifa_stock'  => bcmul($product['pifa_number'],$numbers[$key],0), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'pifa_status' => 0,//批发状态:0=在售,1=售出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'user_product'=> $userId.'_'.$product['id'],//为了提高group速度,合二为一,批发商品列表group辅助用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'pifa_number' => $product['pifa_number'],   //单个商品购买后,放到批发的数量,冗余用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'pifa_price'  => $product['pifa_price'],    //单个商品购买后,放到批发的价格,展示用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'pifa_stock'  => bcmul($product['pifa_number'],$numbers[$key],0), //此用户此商品,放到批发的库存,展示用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'pifa_status' => 0,//批发状态:0=在售,1=售出。批发列表做条件用。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'pifa_shouyi' => $product['pifa_shouyi'],   //单个商品购买后,收益值基数,计算奖励用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!empty($specs[$key])) { 
			 |