From 4d22b53936f18e150546ab0f628e7a4e7756993a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 14 Oct 2025 09:44:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A2=E7=BA=A2=E5=8C=85=E4=BC=98=E5=8C=96?= =?UTF-8?q?=EF=BC=8C=E7=BA=A2=E5=8C=85=E8=AF=A6=E6=83=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/service/RedpacketService.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/common/service/RedpacketService.php b/application/common/service/RedpacketService.php index ed7b564..7b70a2d 100644 --- a/application/common/service/RedpacketService.php +++ b/application/common/service/RedpacketService.php @@ -141,11 +141,15 @@ class RedpacketService // 获取抢红包结果详情 $grabResult = $this->getGrabResult($redpacketId, $userId); + unset($grabResult['previous_records']);//前端不要 + unset($grabResult['all_records']);//前端不要 + unset($grabResult['statistics']);//前端不要 return [ 'code' => 1, 'msg' => '抢红包成功', - 'data' => $grabResult +// 'data' => $grabResult + 'data' => null ]; } catch (\Exception $e) { @@ -354,7 +358,7 @@ class RedpacketService public function getDetail($redpacketId, $currentUserId = 0) { $redpacketModel = new Redpacket(); - $redpacket = $redpacketModel->getRedpacketInfo($redpacketId); + $redpacket['redpacket_info'] = $redpacketModel->getRedpacketInfo($redpacketId); if (!$redpacket) { return null;