作者 lyh

gx

@@ -29,11 +29,9 @@ class ComController extends BaseController @@ -29,11 +29,9 @@ class ComController extends BaseController
29 public function get_menu(){ 29 public function get_menu(){
30 //根据当前登录用户角色返回用户菜单列表 30 //根据当前登录用户角色返回用户菜单列表
31 $projectMenuModel = new ProjectMenuModel(); 31 $projectMenuModel = new ProjectMenuModel();
32 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);  
33 if($this->user['role_id'] != 0){ 32 if($this->user['role_id'] != 0){
34 $this->map = $this->getNoAdminMenuCondition(); 33 $this->map = $this->getNoAdminMenuCondition();
35 }else{ 34 }else{
36 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->map, true) . PHP_EOL, FILE_APPEND);  
37 $this->map = $this->getAdminMenuCondition(); 35 $this->map = $this->getAdminMenuCondition();
38 } 36 }
39 $lists = $projectMenuModel->list($this->map,'sort'); 37 $lists = $projectMenuModel->list($this->map,'sort');
@@ -45,7 +45,6 @@ class FileManageController extends BaseController @@ -45,7 +45,6 @@ class FileManageController extends BaseController
45 $this->map['project_id'] = $this->user['project_id']; 45 $this->map['project_id'] = $this->user['project_id'];
46 $this->request['name'] && $this->map['name'] = ['like','%'.$this->request['name'].'%']; 46 $this->request['name'] && $this->map['name'] = ['like','%'.$this->request['name'].'%'];
47 $lists = $fileManage->lists($this->map, $this->page, $this->row); 47 $lists = $fileManage->lists($this->map, $this->page, $this->row);
48 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND);  
49 if(!empty($lists) && !empty($lists['list'])){ 48 if(!empty($lists) && !empty($lists['list'])){
50 foreach ($lists['list'] as $k => $v){ 49 foreach ($lists['list'] as $k => $v){
51 $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']); 50 $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']);
@@ -89,7 +89,6 @@ class NewsController extends BaseController @@ -89,7 +89,6 @@ class NewsController extends BaseController
89 $str = []; 89 $str = [];
90 $str[] = $this->map['category_id']; 90 $str[] = $this->map['category_id'];
91 $this->getAllSub($this->map['category_id'],$str); 91 $this->getAllSub($this->map['category_id'],$str);
92 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND);  
93 $query->where(function ($subQuery) use ($str) { 92 $query->where(function ($subQuery) use ($str) {
94 foreach ($str as $v) { 93 foreach ($str as $v) {
95 $subQuery->orWhereRaw("FIND_IN_SET(?, category_id) > 0", [$v]); 94 $subQuery->orWhereRaw("FIND_IN_SET(?, category_id) > 0", [$v]);
@@ -480,7 +480,6 @@ class RankDataLogic extends BaseLogic @@ -480,7 +480,6 @@ class RankDataLogic extends BaseLogic
480 $model->lang = $lang; 480 $model->lang = $lang;
481 $model->data = $data; 481 $model->data = $data;
482 $model->updated_date = date('Y-m-d'); 482 $model->updated_date = date('Y-m-d');
483 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($model, true) . PHP_EOL, FILE_APPEND);  
484 $model->save(); 483 $model->save();
485 } 484 }
486 } 485 }