From 823cc9d34d165fb23df18ae526367abd91391cfd Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sat, 23 Mar 2024 19:54:31 +0800 Subject: [PATCH] 1 --- app/api/controller/StoreKeeper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/StoreKeeper.php b/app/api/controller/StoreKeeper.php index 9a7da29b..bb133e00 100644 --- a/app/api/controller/StoreKeeper.php +++ b/app/api/controller/StoreKeeper.php @@ -196,8 +196,8 @@ class StoreKeeper extends Controller $list = $model->getNewList($params); if (!empty($list)) { foreach ($list as $key => $value) { - $list[$key]['transfer']['chat_image_ids'] = []; - $list[$key]['transfer']['transfer_image_ids'] = []; + $value->transfer->chat_image_ids = []; + $value->transfer->transfer_image_ids = []; if (!empty($value['transfer']['chat_image_id'])) { $chat_image_ids = UploadFile::whereIn('file_id', explode(",", $value['transfer']['chat_image_id']))->field('file_id,file_path,file_type,storage,domain')->select(); foreach ($chat_image_ids as &$chat_image_id) {