正在显示
4 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -39,7 +39,6 @@ class CustomModuleController extends BaseController | @@ -39,7 +39,6 @@ class CustomModuleController extends BaseController | ||
| 39 | $this->response('success'); | 39 | $this->response('success'); |
| 40 | } | 40 | } |
| 41 | $customModule = new CustomModule(); | 41 | $customModule = new CustomModule(); |
| 42 | - $this->map['status'] = 0; | ||
| 43 | $lists = $customModule->lists($this->map,$this->page,$this->row,$this->order = ['topping_time','sort','id']); | 42 | $lists = $customModule->lists($this->map,$this->page,$this->row,$this->order = ['topping_time','sort','id']); |
| 44 | DB::disconnect('custom_mysql'); | 43 | DB::disconnect('custom_mysql'); |
| 45 | $this->response('success',Code::SUCCESS,$lists); | 44 | $this->response('success',Code::SUCCESS,$lists); |
| @@ -64,6 +64,9 @@ class FileManageController extends BaseController | @@ -64,6 +64,9 @@ class FileManageController extends BaseController | ||
| 64 | * @time :2023/12/28 17:18 | 64 | * @time :2023/12/28 17:18 |
| 65 | */ | 65 | */ |
| 66 | public function downLoad(){ | 66 | public function downLoad(){ |
| 67 | + if(!isset($this->param['path']) || empty($this->param['path'])){ | ||
| 68 | + $this->response('参数错误',Code::SYSTEM_ERROR); | ||
| 69 | + } | ||
| 67 | $username = basename($this->param['path']); | 70 | $username = basename($this->param['path']); |
| 68 | $parsed_url = parse_url($this->param['path']); | 71 | $parsed_url = parse_url($this->param['path']); |
| 69 | if(isset($parsed_url['scheme'])){ | 72 | if(isset($parsed_url['scheme'])){ |
| @@ -119,6 +119,7 @@ class CustomModuleContentLogic extends BaseLogic | @@ -119,6 +119,7 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 119 | }else{ | 119 | }else{ |
| 120 | $id = $this->contentAdd(); | 120 | $id = $this->contentAdd(); |
| 121 | } | 121 | } |
| 122 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($id, true) . PHP_EOL, FILE_APPEND); | ||
| 122 | //保存扩展字段 | 123 | //保存扩展字段 |
| 123 | $this->saveExtendInfo($id,$extend); | 124 | $this->saveExtendInfo($id,$extend); |
| 124 | return $this->success(['id'=>$id]); | 125 | return $this->success(['id'=>$id]); |
| @@ -59,7 +59,7 @@ class CountLogic extends BaseLogic | @@ -59,7 +59,7 @@ class CountLogic extends BaseLogic | ||
| 59 | */ | 59 | */ |
| 60 | public function scheme_info(){ | 60 | public function scheme_info(){ |
| 61 | $data = [ | 61 | $data = [ |
| 62 | - 'company'=>$this->project['company'], | 62 | + 'company'=>$this->project['company'] ?? '', |
| 63 | 'scheme'=>Project::planMap()[$this->project['deploy_build']['plan']], | 63 | 'scheme'=>Project::planMap()[$this->project['deploy_build']['plan']], |
| 64 | 'service_duration'=>$this->project['deploy_build']['service_duration'], | 64 | 'service_duration'=>$this->project['deploy_build']['service_duration'], |
| 65 | ]; | 65 | ]; |
-
请 注册 或 登录 后发表评论