mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-17 17:26:40 +08:00
修复获取器空键名报错
This commit is contained in:
parent
55fd7f9335
commit
b5d128d6b4
@ -37,7 +37,7 @@ class PayAccount extends BaseModel
|
|||||||
foreach ($payplugin_config as $config) {
|
foreach ($payplugin_config as $config) {
|
||||||
$option[$config['platform']] = $config['name'];
|
$option[$config['platform']] = $config['name'];
|
||||||
}
|
}
|
||||||
return $option[$value];
|
return isset($option[$value]) ? $option[$value] : '[已卸载,请停用]';
|
||||||
}
|
}
|
||||||
public function getPatternAttr($value)
|
public function getPatternAttr($value)
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ class ImgCaptcha
|
|||||||
return $captcha;
|
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);
|
$ch = curl_init($url);
|
||||||
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
|
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user