作者 lyh

gx

... ... @@ -39,7 +39,6 @@ class CustomModuleController extends BaseController
$this->response('success');
}
$customModule = new CustomModule();
$this->map['status'] = 0;
$lists = $customModule->lists($this->map,$this->page,$this->row,$this->order = ['topping_time','sort','id']);
DB::disconnect('custom_mysql');
$this->response('success',Code::SUCCESS,$lists);
... ...
... ... @@ -64,6 +64,9 @@ class FileManageController extends BaseController
* @time :2023/12/28 17:18
*/
public function downLoad(){
if(!isset($this->param['path']) || empty($this->param['path'])){
$this->response('参数错误',Code::SYSTEM_ERROR);
}
$username = basename($this->param['path']);
$parsed_url = parse_url($this->param['path']);
if(isset($parsed_url['scheme'])){
... ...
... ... @@ -119,6 +119,7 @@ class CustomModuleContentLogic extends BaseLogic
}else{
$id = $this->contentAdd();
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($id, true) . PHP_EOL, FILE_APPEND);
//保存扩展字段
$this->saveExtendInfo($id,$extend);
return $this->success(['id'=>$id]);
... ...
... ... @@ -59,7 +59,7 @@ class CountLogic extends BaseLogic
*/
public function scheme_info(){
$data = [
'company'=>$this->project['company'],
'company'=>$this->project['company'] ?? '',
'scheme'=>Project::planMap()[$this->project['deploy_build']['plan']],
'service_duration'=>$this->project['deploy_build']['service_duration'],
];
... ...