|
...
|
...
|
@@ -77,8 +77,8 @@ class ProjectLogic extends BaseLogic |
|
|
|
* @time :2023/8/30 11:57
|
|
|
|
*/
|
|
|
|
public function projectSave(){
|
|
|
|
// DB::beginTransaction();
|
|
|
|
// try {
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$this->createProjectData($this->param);
|
|
|
|
//保存项目信息
|
|
|
|
$this->saveProject($this->param);
|
|
...
|
...
|
@@ -90,11 +90,11 @@ class ProjectLogic extends BaseLogic |
|
|
|
$this->saveProjectDeployOptimize($this->param['deploy_optimize']);
|
|
|
|
//保存售后信息
|
|
|
|
$this->saveProjectAfter($this->param['project_after']);
|
|
|
|
// DB::commit();
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// DB::rollBack();
|
|
|
|
// $this->fail('error');
|
|
|
|
// }
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -369,7 +369,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
//先清空上一次所绑定的域名
|
|
|
|
$info = $domainModel->read(['project_id'=>$project_id]);
|
|
|
|
if($info !== false){
|
|
|
|
$domainModel->edit(['project_id'=>'','status'=>DomainInfo::STATUS_ZERO],['id'=>$info['id']]);
|
|
|
|
$domainModel->edit(['project_id'=>' ','status'=>DomainInfo::STATUS_ZERO],['id'=>$info['id']]);
|
|
|
|
}
|
|
|
|
//重新设置域名
|
|
|
|
$domainModel->edit(['status'=>DomainInfo::STATUS_ONE,'project_id'=>$project_id],['id'=>$domain]);
|
...
|
...
|
|