| 
					
					
						
							
						
					
					
				 | 
				@ -175,6 +175,16 @@ class OrderController extends Controller | 
			
		
		
	
		
			
				 | 
				 | 
							$order_timeout = AgentSetting::val($this->agent_id, 'order_timeout') ?? 60; //默认60分钟
 | 
				 | 
				 | 
							$order_timeout = AgentSetting::val($this->agent_id, 'order_timeout') ?? 60; //默认60分钟
 | 
			
		
		
	
		
			
				 | 
				 | 
							$timeout = date('Y-m-d H:i:s', time() + $order_timeout * 60); //60 * 分钟转为秒
 | 
				 | 
				 | 
							$timeout = date('Y-m-d H:i:s', time() + $order_timeout * 60); //60 * 分钟转为秒
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							//处理预付金额
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							if ($formData['pay_type'] == PayType::DEPOSIT_PAY) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								//订金支付
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								$prepayPrice = $ap->deposit; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								$prepayTimeout = $ap->deposit_timeout; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							} else if($formData['pay_type'] == PayType::EARNEST_PAY) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								//定金支付
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								$prepayPrice = $ap->earnest; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								$prepayTimeout = $ap->earnest_timeout; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							} | 
			
		
		
	
		
			
				 | 
				 | 
							// 存入订单表
 | 
				 | 
				 | 
							// 存入订单表
 | 
			
		
		
	
		
			
				 | 
				 | 
							$order = Order::query()->create([ | 
				 | 
				 | 
							$order = Order::query()->create([ | 
			
		
		
	
		
			
				 | 
				 | 
								'user_id' => $this->user_id, | 
				 | 
				 | 
								'user_id' => $this->user_id, | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -197,6 +207,8 @@ class OrderController extends Controller | 
			
		
		
	
		
			
				 | 
				 | 
								'timeout' => $timeout, | 
				 | 
				 | 
								'timeout' => $timeout, | 
			
		
		
	
		
			
				 | 
				 | 
								'agent_cloud_pid' => $ap->agent_cloud_pid, | 
				 | 
				 | 
								'agent_cloud_pid' => $ap->agent_cloud_pid, | 
			
		
		
	
		
			
				 | 
				 | 
								'agent_cloud_price' => $ap->agentCloudProduct->price ?? 0, | 
				 | 
				 | 
								'agent_cloud_price' => $ap->agentCloudProduct->price ?? 0, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								'prepay_price	' => $prepayPrice ?? 0, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
								'prepay_timeout' => $prepayTimeout ?? 0, | 
			
		
		
	
		
			
				 | 
				 | 
							]); | 
				 | 
				 | 
							]); | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
							//存入订单产品表
 | 
				 | 
				 | 
							//存入订单产品表
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |