|
@@ -33,14 +33,13 @@ class CustomModuleContentController extends BaseController |
|
@@ -33,14 +33,13 @@ class CustomModuleContentController extends BaseController |
|
33
|
]);
|
33
|
]);
|
|
34
|
$this->map['project_id'] = $this->user['project_id'];
|
34
|
$this->map['project_id'] = $this->user['project_id'];
|
|
35
|
$lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
|
35
|
$lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
36
|
+ @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND);
|
|
36
|
if(!empty($lists)){
|
37
|
if(!empty($lists)){
|
|
37
|
$data = $this->getAllCategoryName();
|
38
|
$data = $this->getAllCategoryName();
|
|
38
|
foreach ($lists as $k=>$v){
|
39
|
foreach ($lists as $k=>$v){
|
|
39
|
- @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
40
|
- @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v['category_id'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
41
|
-// $v['category_name'] = $this->categoryName($v['category_id'],$data);
|
|
|
|
42
|
- $v['image_link'] = getImageUrl($v['image']);
|
|
|
|
43
|
- $v['operator_name'] = (new User())->getName($v['operator_id']);
|
40
|
+ $v['category_name'] = $this->categoryName($v->category_id,$data);
|
|
|
|
41
|
+ $v['image_link'] = getImageUrl($v->image);
|
|
|
|
42
|
+ $v['operator_name'] = (new User())->getName($v->operator_id);
|
|
44
|
$lists[$k] = $v;
|
43
|
$lists[$k] = $v;
|
|
45
|
}
|
44
|
}
|
|
46
|
}
|
45
|
}
|