From dfb8edff2205b4fd42b85c1a8e21abd4f77a57ed 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: Sat, 21 Dec 2024 20:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E9=81=93=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=8A=A5500=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/PayController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/PayController.php b/app/controller/PayController.php index e5856f3..a91f0d0 100644 --- a/app/controller/PayController.php +++ b/app/controller/PayController.php @@ -279,6 +279,8 @@ class PayController $action = isset($info['action']) ? $info['action'] : ''; if ($action === 'mpay') { $data = json_decode($info['data'], true); + if (!is_array($data)) return 200; + if(!isset($data['aid']) || !isset($data['pid'])) return 202; $config = PayAccount::getAccountConfig($data['aid'], $data['pid']); $payclient_path = "\\payclient\\{$config['payclass']}"; $Payclient = new $payclient_path($info, $config);