作者 lyh

gx

... ... @@ -46,8 +46,15 @@ class OnlineCheckLogic extends BaseLogic
if(($info['qa_mid'] != 0) && ($info['qa_mid'] != $this->manager['id'])){
$this->fail('你无权限提交审核');
}
if(isset($this->param['project_type']) && !empty($this->param['project_type'])){
$projectModel = new Project();
$projectInfo = $projectModel->read(['id'=>$this->param['id']]);
if(!empty($projectInfo['uptime'])){
$param['uptime'] = date('Y-m-d H:i:s');
}
if(isset($this->param['project_type']) && !empty($this->param['project_type'])){
$param['type'] = $this->param['project_type'];
}
if(isset($param)){
$projectModel->edit(['type'=>$this->param['project_type']],['id'=>$this->param['id']]);
}
}
... ...