From b5d128d6b4df18c1aa68d4356460c0f44309a2c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=80=E6=9C=AF=E8=80=81=E8=83=A1?= <1094551889@qq.com> Date: Wed, 11 Dec 2024 15:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E5=99=A8?= =?UTF-8?q?=E7=A9=BA=E9=94=AE=E5=90=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/PayAccount.php | 2 +- extend/ImgCaptcha.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/model/PayAccount.php b/app/model/PayAccount.php index c5a24f9..c1453be 100644 --- a/app/model/PayAccount.php +++ b/app/model/PayAccount.php @@ -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) { diff --git a/extend/ImgCaptcha.php b/extend/ImgCaptcha.php index a8ea520..9736177 100644 --- a/extend/ImgCaptcha.php +++ b/extend/ImgCaptcha.php @@ -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);