|
...
|
...
|
@@ -33,7 +33,6 @@ class CustomModuleContentController extends BaseController |
|
|
|
]);
|
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if(!empty($lists)){
|
|
|
|
$data = $this->getAllCategoryName();
|
|
|
|
foreach ($lists['list'] as $k=>$v){
|
|
...
|
...
|
@@ -73,9 +72,9 @@ class CustomModuleContentController extends BaseController |
|
|
|
public function categoryName($category_id,$data){
|
|
|
|
$category_name = '';
|
|
|
|
if(!empty($category_id) && !empty($data)){
|
|
|
|
foreach ($category_id as $v1){
|
|
|
|
if(isset($data[$v1])){
|
|
|
|
$category_name .= $data[$v1].',';
|
|
|
|
foreach ($category_id as $v){
|
|
|
|
if(isset($data[$v])){
|
|
|
|
$category_name .= $data[$v].',';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$category_name = trim($category_name,',');
|
...
|
...
|
|