作者 lyh

gxai

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