From ca2d1da548621328ea73b6eeb22c95272b064b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Wed, 17 Sep 2025 20:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E7=89=88=E4=B9=8B=E5=90=8Ebug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9----=E6=95=B0=E7=BB=84=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/controller/Push.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/common/controller/Push.php b/application/common/controller/Push.php index 0de32d8..f0c5d84 100644 --- a/application/common/controller/Push.php +++ b/application/common/controller/Push.php @@ -279,6 +279,8 @@ class Push public function giftBanner($gift_list) { $topic = 'qx_room_topic'; + //数组重组下标从0开始 + $gift_list = array_values($gift_list); $data = ['room_id' => $this->room_id, 'list' => $gift_list]; $this->push(self::PUSH_GIFT_BANNER, $topic, $data); }