|
|
@ -193,27 +193,18 @@ class StoreKeeper extends Controller |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$model = new OrderModel; |
|
|
|
$model = new OrderModel; |
|
|
|
$list = $model->getNewList($params); |
|
|
|
$list = $model->getNewList($params)->each(function ($item) { |
|
|
|
if (!empty($list->data)) { |
|
|
|
if (!empty($item['transfer'])) { |
|
|
|
foreach ($list->data as $value) { |
|
|
|
if (!empty($item['transfer']['chat_image_id'])) { |
|
|
|
if (!empty($value->transfer) && !empty($value->transfer->chat_image_id)) { |
|
|
|
$chat_image_ids = UploadFile::whereIn('file_id', explode(",", $item['transfer']['chat_image_id']))->field('file_id,file_path,file_type,storage,domain')->select(); |
|
|
|
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) { |
|
|
|
foreach ($chat_image_ids as &$chat_image_id) { |
|
|
|
$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']); |
|
|
|
} |
|
|
|
} |
|
|
|
$value->transfer->chat_image_ids = $chat_image_ids; |
|
|
|
$item['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) { |
|
|
|
|
|
|
|
$transfer_image_id['file_path'] = getUrl($transfer_image_id['file_path'], $transfer_image_id['domain']); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$value->transfer->transfer_image_ids = $transfer_image_ids; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
return $this->renderSuccess(compact('dataType', 'list')); |
|
|
|
return $this->renderSuccess(compact('dataType', 'list')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|