From ab757ff1c988fda5908c60caa7b53fec37cda79b Mon Sep 17 00:00:00 2001 From: huangguancheng Date: Tue, 21 Jan 2025 15:24:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A9=BA=E6=95=B0=E7=BB=84=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=94=B9=E6=88=90=E7=A9=BA=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/BpsAdController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/BpsAdController.php b/app/controller/BpsAdController.php index 7126e5d..0275ada 100644 --- a/app/controller/BpsAdController.php +++ b/app/controller/BpsAdController.php @@ -865,8 +865,8 @@ class BpsAdController ]; // 如果 data 是空数组,转换为空对象 - if (is_array($data) && empty($data)) { - $responseData['data'] = new \stdClass(); + if (is_array($data) && empty($data['data'])) { + $responseData['data']['data'] = new \stdClass(); } // 如果有新 token,添加到 header