From 252d02e7b9558121619e9fc6f34e38bdc02b7e9a Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Tue, 21 Oct 2025 11:05:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=A7=A6=E5=AE=A2=E5=AE=9D=E3=80=91?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/chukebao/controller/MomentsController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Server/application/chukebao/controller/MomentsController.php b/Server/application/chukebao/controller/MomentsController.php index 2019a047..fd3ae575 100644 --- a/Server/application/chukebao/controller/MomentsController.php +++ b/Server/application/chukebao/controller/MomentsController.php @@ -370,18 +370,17 @@ class MomentsController extends BaseController // 处理数据 $data = []; foreach ($list as $item) { - $sendData = json_encode($item->sendData,true); + $sendData = json_decode($item->sendData,true); $data[] = [ 'id' => $item->id, - 'text' => $sendData['text'] ?? '', + 'content' => $sendData['text'] ?? '', 'momentContentType' => $sendData['momentContentType'] ?? 1, 'picUrlList' => $sendData['picUrlList'] ?? [], 'videoUrl' => $sendData['videoUrl'] ?? '', 'link' => $sendData['link'] ?? [], 'publicMode' => $sendData['publicMode'] ?? 2, 'isSend' => $item->isSend, - 'createTime' => $item->createTime, - 'sendTime' => $item->sendTime, + 'sendTime' => date('Y-m-d H:i:s',$item->sendTime), 'accountCount' => count($sendData['jobPublishWechatMomentsItems'] ?? []) ]; }