mirror of
				https://gitee.com/zoujingli/WeChatDeveloper.git
				synced 2025-11-04 10:52:08 +08:00 
			
		
		
		
	[更新]增加企业sub_mch_id及sub_appid配置支持(也可以传到options中)
This commit is contained in:
		
							parent
							
								
									aacd8a4563
								
							
						
					
					
						commit
						afb831cbca
					
				@ -61,6 +61,13 @@ class BasicPay
 | 
			
		||||
            'mch_id'    => $this->config->get('mch_id'),
 | 
			
		||||
            'nonce_str' => Tools::createNoncestr(),
 | 
			
		||||
        ]);
 | 
			
		||||
        // 商户参数支持
 | 
			
		||||
        if ($this->config->get('sub_appid')) {
 | 
			
		||||
            $this->params->set('sub_appid', $this->config->get('sub_appid'));
 | 
			
		||||
        }
 | 
			
		||||
        if ($this->config->get('sub_mch_id')) {
 | 
			
		||||
            $this->params->set('sub_mch_id', $this->config->get('sub_mch_id'));
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user