作者 lyh

gx

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