From 96b652872b88fe6e22cfcc1f49ca26d501f6e132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Sat, 16 Aug 2025 14:38:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/czg/app/controller/UniCallBackController.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/czg/app/controller/UniCallBackController.php b/app/czg/app/controller/UniCallBackController.php index 2a41f8f..59607af 100644 --- a/app/czg/app/controller/UniCallBackController.php +++ b/app/czg/app/controller/UniCallBackController.php @@ -19,13 +19,13 @@ class UniCallBackController extends Frontend public function adCallBack() { $params = [ - 'adpid' => $this->request->param('adpid'), - 'provider' => $this->request->param('provider'), - 'platform' => $this->request->param('platform'), - 'sign' => $this->request->param('sign'), - 'trans_id' => $this->request->param('trans_id'), - 'user_id' => $this->request->param('user_id'), - 'extra' => $this->request->param('extra', '') // 可选参数,默认空字符串 + 'adpid' => $this->request->get('adpid'), + 'provider' => $this->request->get('provider'), + 'platform' => $this->request->get('platform'), + 'sign' => $this->request->get('sign'), + 'trans_id' => $this->request->get('trans_id'), + 'user_id' => $this->request->get('user_id'), + 'extra' => $this->request->get('extra', '') // 可选参数,默认空字符串 ]; // 记录日志 Log::info("接收到uni-ad广告完播回调,回调信息: " . json_encode($params)); From 0711fe22be7a88a2718fee3afe881098836a63d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Sat, 16 Aug 2025 15:31:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/czg/app/controller/DiscSpinningController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/czg/app/controller/DiscSpinningController.php b/app/czg/app/controller/DiscSpinningController.php index a888efa..2d2a3c5 100644 --- a/app/czg/app/controller/DiscSpinningController.php +++ b/app/czg/app/controller/DiscSpinningController.php @@ -78,7 +78,7 @@ class DiscSpinningController extends Frontend 'draws' => $resp ]); $resp = convertToCamelCase($resp); - $resp['img'] = $resp['imgUrl']; + $resp['img'] = $resp['img_url'] ?? ''; $this->successWithData($resp); }