mirror of
				https://gitee.com/technical-laohu/mpay.git
				synced 2025-11-04 16:53:44 +08:00 
			
		
		
		
	修复获取器空键名报错
This commit is contained in:
		@@ -37,7 +37,7 @@ class PayAccount extends BaseModel
 | 
			
		||||
        foreach ($payplugin_config as $config) {
 | 
			
		||||
            $option[$config['platform']] =  $config['name'];
 | 
			
		||||
        }
 | 
			
		||||
        return $option[$value];
 | 
			
		||||
        return isset($option[$value]) ? $option[$value] : '[已卸载,请停用]';
 | 
			
		||||
    }
 | 
			
		||||
    public function getPatternAttr($value)
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -23,7 +23,7 @@ class ImgCaptcha
 | 
			
		||||
        return $captcha;
 | 
			
		||||
    }
 | 
			
		||||
    // 请求外部资源
 | 
			
		||||
    private function getHttpResponse($url, $header = [], $post = null, $timeout = 10)
 | 
			
		||||
    private static function getHttpResponse($url, $header = [], $post = null, $timeout = 10)
 | 
			
		||||
    {
 | 
			
		||||
        $ch = curl_init($url);
 | 
			
		||||
        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user