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'] ?? []) ]; }