|
...
|
...
|
@@ -959,15 +959,15 @@ class ProjectLogic extends BaseLogic |
|
|
|
$noticeModel = new NoticeLog();
|
|
|
|
$info = $noticeModel->read(['type'=>NoticeLog::TYPE_COPY_PROJECT,'status'=>0,'data'=>['like','%"'.$this->param['project_id'].'"%']]);
|
|
|
|
if($info !== false){
|
|
|
|
return $this->success('当前项目已在复制中');
|
|
|
|
return $this->success(['message'=>'当前项目已在复制中']);
|
|
|
|
}
|
|
|
|
$projectModel = new Project();
|
|
|
|
$projectInfo = $projectModel->read(['old_project_id'=>$this->param['project_id']]);
|
|
|
|
if($projectInfo !== false){
|
|
|
|
return $this->success('当前项目已复制过');
|
|
|
|
return $this->success(['message'=>'当前项目已复制过']);
|
|
|
|
}
|
|
|
|
NoticeLog::createLog(NoticeLog::TYPE_COPY_PROJECT, ['project_id' => $this->param['project_id']]);
|
|
|
|
return $this->success('项目复制中,请稍后前往初始化项目查看;');
|
|
|
|
return $this->success(['message'=>'项目复制中,请稍后前往初始化项目查看;']);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|