| 
					
					
						
							
						
					
					
				 | 
				@ -5,6 +5,7 @@ namespace App\Http\Controllers\Api; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Common\PayType; | 
				 | 
				 | 
				use App\Common\PayType; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Common\ProductStatus; | 
				 | 
				 | 
				use App\Common\ProductStatus; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Http\Controllers\Controller; | 
				 | 
				 | 
				use App\Http\Controllers\Controller; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				use App\Models\AdminSetting; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Models\Agent; | 
				 | 
				 | 
				use App\Models\Agent; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Models\AgentProduct; | 
				 | 
				 | 
				use App\Models\AgentProduct; | 
			
		
		
	
		
			
				 | 
				 | 
				use App\Models\AgentSetting; | 
				 | 
				 | 
				use App\Models\AgentSetting; | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -227,7 +228,7 @@ class OrderController extends Controller | 
			
		
		
	
		
			
				 | 
				 | 
								return $this->error($config['err_code_des'] ?? join(',', $config)); | 
				 | 
				 | 
								return $this->error($config['err_code_des'] ?? join(',', $config)); | 
			
		
		
	
		
			
				 | 
				 | 
							}*/ | 
				 | 
				 | 
							}*/ | 
			
		
		
	
		
			
				 | 
				 | 
							// TODO 跳转支付专用
 | 
				 | 
				 | 
							// TODO 跳转支付专用
 | 
			
		
		
	
		
			
				 | 
				 | 
							return $this->success(['id' => $order->id, 'jump' => true, 'jump_appid' => 'wxb35ef055a4dd8ad4']); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
							return $this->success(['id' => $order->id, 'jump' => true, 'jump_appid' => AdminSetting::val('payee_appid')]); | 
			
		
		
	
		
			
				 | 
				 | 
						} | 
				 | 
				 | 
						} | 
			
		
		
	
		
			
				 | 
				 | 
					} | 
				 | 
				 | 
					} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -328,7 +329,10 @@ class OrderController extends Controller | 
			
		
		
	
		
			
				 | 
				 | 
							return $this->error('订单已支付或已超时'); | 
				 | 
				 | 
							return $this->error('订单已支付或已超时'); | 
			
		
		
	
		
			
				 | 
				 | 
						} | 
				 | 
				 | 
						} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
						$ap = AgentProduct::with('coupon')->find($order->agent_product_id); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
						// TODO 跳转支付专用
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
						return $this->success(['id' => $id, 'jump' => true, 'jump_appid' => AdminSetting::val('payee_appid')]); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
						/*$ap = AgentProduct::with('coupon')->find($order->agent_product_id); | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
						//如果已经付定金或首付款,则仅支付尾款
 | 
				 | 
				 | 
						//如果已经付定金或首付款,则仅支付尾款
 | 
			
		
		
	
		
			
				 | 
				 | 
						if ($order->status == Status::PAY_EARNEST) { | 
				 | 
				 | 
						if ($order->status == Status::PAY_EARNEST) { | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -342,7 +346,7 @@ class OrderController extends Controller | 
			
		
		
	
		
			
				 | 
				 | 
							return $this->success($config); | 
				 | 
				 | 
							return $this->success($config); | 
			
		
		
	
		
			
				 | 
				 | 
						} else { | 
				 | 
				 | 
						} else { | 
			
		
		
	
		
			
				 | 
				 | 
							return $this->error($config['err_code_des'] ?? join(',', $config)); | 
				 | 
				 | 
							return $this->error($config['err_code_des'] ?? join(',', $config)); | 
			
		
		
	
		
			
				 | 
				 | 
						} | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
						}*/ | 
			
		
		
	
		
			
				 | 
				 | 
					} | 
				 | 
				 | 
					} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
					//获取支付配置信息
 | 
				 | 
				 | 
					//获取支付配置信息
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |