feature/main20240421
郭嘉 6 months ago
parent 6d6301ee3c
commit eb57d02cd3
  1. 4
      app/admin/controller/Feedback.php

@ -76,13 +76,13 @@ class Feedback extends Controller
$list = $model->getList($params, intval($pageSize))->toArray();
foreach ($list['data'] as $kr => $r) {
$res[$kr]['imgsInfo'] = [];
$list['data'][$kr]['imgsInfo'] = [];
if ($r['imgs']) {
$img_ids = explode(",", $r['imgs']);
$files = UploadFile::getFileListBySuper($img_ids);
$list['data'][$kr]['imgsInfo'] = $files ?: null;
}
$res[$kr]['deal_time'] = !empty($r['deal_time']) ? Date("Y-m-d H:i:s", $r['deal_time']) : '';
$list['data'][$kr]['deal_time'] = !empty($r['deal_time']) ? Date("Y-m-d H:i:s", $r['deal_time']) : '';
}
return $this->renderSuccess($list);
}

Loading…
Cancel
Save