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