From 07a1720efc1caca826daf9ddd048625af765d422 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sat, 23 Mar 2024 20:06:18 +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 9f46c2ed..87ba10d3 100644 --- a/app/api/controller/StoreKeeper.php +++ b/app/api/controller/StoreKeeper.php @@ -195,13 +195,13 @@ class StoreKeeper extends Controller $model = new OrderModel; $list = $model->getNewList($params); if (!empty($list['data'])) { - foreach ($list['data'] as $value) { + foreach ($list['data'] as $key => $value) { if (!empty($value['transfer']) && !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) { $chat_image_id['file_path'] = getUrl($chat_image_id['file_path'], $chat_image_id['domain']); } - $value['transfer']['chat_image_ids'] = $chat_image_ids; + $list['data'][$key]['transfer']['chat_image_ids'] = $chat_image_ids; // if (!empty($value->transfer->transfer_image_id)) { // $transfer_image_ids = UploadFile::whereIn('file_id', explode(",", $value->transfer->transfer_image_id))->field('file_id,file_path,file_type,storage,domain')->select(); // foreach ($transfer_image_ids as &$transfer_image_id) {