作者 lyh

gx

... ... @@ -213,8 +213,7 @@ class ProjectController extends BaseController
public function save(ProjectRequest $request, ProjectLogic $logic)
{
$request->validated();
$rs = $logic->projectSave();
return $rs;
$logic->projectSave();
$this->response('success');
}
... ...
... ... @@ -80,8 +80,7 @@ class ProjectLogic extends BaseLogic
// try {
$this->createProjectData($this->param);
//保存项目信息
$rs = $this->saveProject($this->param);
return $rs;
$this->saveProject($this->param);
//保存建站部署信息
$this->saveProjectDeployBuild($this->param['deploy_build']);
//保存付费信息
... ... @@ -128,8 +127,7 @@ class ProjectLogic extends BaseLogic
}
$param['confirm_file'] = Arr::a2s($param['confirm_file']);
}
$rs = $this->model->edit($param,['id'=>$param['id']]);
return $rs;
$this->model->edit($param,['id'=>$param['id']]);
Common::del_user_cache($this->model->getTable(),$param['id']);
return $this->success();
}
... ...
... ... @@ -124,6 +124,7 @@ class Base extends Model
$query = $this->formatQuery($condition);
$data['updated_at'] = date('Y-m-d H:i:s');
$filLabelData = Arr::only($data, $this->getFillable());
file_put_contents(storage_path('logs/lyh_error.log'), var_export($filLabelData, true) . PHP_EOL, FILE_APPEND)
return $query->update($filLabelData);
}
... ...