| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -134,7 +134,7 @@ class DemandBiddingController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												//将产品绑给代理商
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand = Demand::find($form->model()->demand_id); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand->demand_product_id = $productId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand->save(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demandProduct = DemandProduct::find($productId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$product = new Product(); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -156,6 +156,9 @@ class DemandBiddingController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand = Demand::find($form->model()->demand_id); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand->demand_product_id = $productId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand->save(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand->product_id = $product->id; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												$demand->save(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												DB::commit(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											} catch (\Exception $e) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												Log::error('分配订单失败::' . $e->getTraceAsString()); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |