作者 lyh

gx

@@ -38,7 +38,7 @@ class CustomModuleContentController extends BaseController @@ -38,7 +38,7 @@ class CustomModuleContentController extends BaseController
38 foreach ($lists as $k=>$v){ 38 foreach ($lists as $k=>$v){
39 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND); 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); 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); 41 +// $v['category_name'] = $this->categoryName($v['category_id'],$data);
42 $v['image_link'] = getImageUrl($v['image']); 42 $v['image_link'] = getImageUrl($v['image']);
43 $v['operator_name'] = (new User())->getName($v['operator_id']); 43 $v['operator_name'] = (new User())->getName($v['operator_id']);
44 $lists[$k] = $v; 44 $lists[$k] = $v;
@@ -18,7 +18,7 @@ class CustomModuleContent extends Base @@ -18,7 +18,7 @@ class CustomModuleContent extends Base
18 //连接数据库 18 //连接数据库
19 protected $connection = 'custom_mysql'; 19 protected $connection = 'custom_mysql';
20 20
21 - public function getCategoryIdAttribute($value){  
22 - return explode(',',trim($value,','));  
23 - } 21 +// public function getCategoryIdAttribute($value){
  22 +// return explode(',',trim($value,','));
  23 +// }
24 } 24 }