|  | @@ -108,7 +108,7 @@ class Wechat extends Core
 | 
	
		
			
				|  |  |  		$input->SetNotify_url($this->config->GetNotifyUrl());
 | 
	
		
			
				|  |  |  		$input->SetTrade_type($trade_type);
 | 
	
		
			
				|  |  |  		$input->SetProduct_id($product_id);
 | 
	
		
			
				|  |  | -		if ($type != 4 && $openid != -1) {
 | 
	
		
			
				|  |  | +		if ($type == 1 && $openid != -1) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			if (!$openid && Dever::project('passport')) {
 | 
	
		
			
				|  |  |  				$where = array();
 | 
	
	
		
			
				|  | @@ -145,7 +145,7 @@ class Wechat extends Core
 | 
	
		
			
				|  |  |  	 */
 | 
	
		
			
				|  |  |  	public function qrcode($order, $refer)
 | 
	
		
			
				|  |  |  	{
 | 
	
		
			
				|  |  | -		$notify = new \NativePay();
 | 
	
		
			
				|  |  | +		$notify = new \NativePay($this->config);
 | 
	
		
			
				|  |  |  		$result = $notify->GetPayUrl($order);
 | 
	
		
			
				|  |  |  		$url = $result['code_url'];
 | 
	
		
			
				|  |  |  		return $url;
 |