|
...
|
...
|
@@ -34,13 +34,13 @@ class CustomModuleContentController extends BaseController |
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
if(!empty($lists)){
|
|
|
|
// $data = $this->getAllCategoryName();
|
|
|
|
// foreach ($lists['list'] as $k=>$v){
|
|
|
|
$data = $this->getAllCategoryName();
|
|
|
|
foreach ($lists['list'] as $k=>$v){
|
|
|
|
// $v['category_name'] = $this->categoryName($v['category_id'],$data);
|
|
|
|
// $v['image_link'] = getImageUrl($v['image']);
|
|
|
|
// $v['operator_name'] = (new User())->getName($v['operator_id']);
|
|
|
|
// $lists['list'][$k] = $v;
|
|
|
|
// }
|
|
|
|
$v['image_link'] = getImageUrl($v['image']);
|
|
|
|
$v['operator_name'] = (new User())->getName($v['operator_id']);
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
...
|
...
|
|