wanghousheng 11 months ago
parent 07a1720efc
commit 31269bba12
  1. 14
      app/api/controller/StoreKeeper.php

@ -202,13 +202,13 @@ class StoreKeeper extends Controller
$chat_image_id['file_path'] = getUrl($chat_image_id['file_path'], $chat_image_id['domain']); $chat_image_id['file_path'] = getUrl($chat_image_id['file_path'], $chat_image_id['domain']);
} }
$list['data'][$key]['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(); if (!empty($value['transfer']) && !empty($value['transfer']['transfer_image_id'])) {
// foreach ($transfer_image_ids as &$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();
// $transfer_image_id['file_path'] = getUrl($transfer_image_id['file_path'], $transfer_image_id['domain']); foreach ($transfer_image_ids as &$transfer_image_id) {
// } $transfer_image_id['file_path'] = getUrl($transfer_image_id['file_path'], $transfer_image_id['domain']);
// $value->transfer->transfer_image_ids = $transfer_image_ids; }
// } $list['data'][$key]['transfer']['transfer_image_ids'] = $transfer_image_ids;
} }
} }
} }

Loading…
Cancel
Save