diff --git a/app/api/controller/StoreKeeper.php b/app/api/controller/StoreKeeper.php index 3d81ead1..303d1a13 100644 --- a/app/api/controller/StoreKeeper.php +++ b/app/api/controller/StoreKeeper.php @@ -194,8 +194,8 @@ class StoreKeeper extends Controller } else { $model = new OrderModel; $list = $model->getNewList($params); - if (!empty($list['data'])) { - foreach ($list['data'] as $value) { + if (!empty($list->data)) { + foreach ($list->data as $value) { if (!empty($value->transfer) && !empty($value->transfer->chat_image_id)) { 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();