| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -18,6 +18,7 @@ use App\Service\OpenPlatform; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use EasyWeChat\Factory; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use EasyWeChat\Kernel\Exceptions\InvalidArgumentException; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use EasyWeChat\Kernel\Exceptions\InvalidConfigException; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use EasyWeChat\Kernel\Http\StreamResponse; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use GuzzleHttp\Exception\GuzzleException; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use Illuminate\Http\Request; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					use Illuminate\Support\Facades\DB; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -434,9 +435,12 @@ class OrderController extends Controller | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$app = $app->miniProgram($order->agent->appid, $refreshToken); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$response = $app->app_code->getUnlimit($order->verify_code, ['page' => 'pages/verification/index']); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								//由于参数最多只能32个字符,故通过下面这种方式传参
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								//0$表示使用普通订单,使用api/verification/verify接口核销;
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								//1$表示行业产品订单,使用api/verification/industry_verify接口核销
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$response = $app->app_code->getUnlimit('0$' . $order->verify_code, ['page' => 'pages/verification/index']); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								if ($response instanceof \EasyWeChat\Kernel\Http\StreamResponse) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								if ($response instanceof StreamResponse) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$filename = $response->saveAs(storage_path('app/public/verify_code'), $order->verify_code); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$order->verify_qrcode = Storage::disk('public')->url('verify_code/' . $filename); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |