作者 lyh

gx

@@ -73,7 +73,7 @@ class ProjectLogic extends BaseLogic @@ -73,7 +73,7 @@ class ProjectLogic extends BaseLogic
73 if($info['extend_type'] != 0){ 73 if($info['extend_type'] != 0){
74 $info['type'] = $info['extend_type']; 74 $info['type'] = $info['extend_type'];
75 } 75 }
76 - $info['domain_url'] = (new DomainInfo())->getDomain($info['deploy_optimize']['domain'] ?? 0); 76 +// $info['domain_url'] = (new DomainInfo())->getDomain($info['deploy_optimize']['domain'] ?? 0);
77 //升级项目初始上传配置 77 //升级项目初始上传配置
78 if(empty($info['upload_config'])){ 78 if(empty($info['upload_config'])){
79 $info['upload_config'] =["upload_max_num"=>100, "allow_file_type"=>"doc,docx,xls,xlsx,pdf,txt,csv,png,jpg,jpeg", "upload_max_size"=>5]; 79 $info['upload_config'] =["upload_max_num"=>100, "allow_file_type"=>"doc,docx,xls,xlsx,pdf,txt,csv,png,jpg,jpeg", "upload_max_size"=>5];
@@ -120,8 +120,8 @@ class ProjectLogic extends BaseLogic @@ -120,8 +120,8 @@ class ProjectLogic extends BaseLogic
120 * @time :2023/8/30 11:57 120 * @time :2023/8/30 11:57
121 */ 121 */
122 public function projectSave(){ 122 public function projectSave(){
123 -// DB::beginTransaction();  
124 -// try { 123 + DB::beginTransaction();
  124 + try {
125 if($this->param['type'] == Project::TYPE_SEVEN){ 125 if($this->param['type'] == Project::TYPE_SEVEN){
126 //错误单直接返回,单独处理 126 //错误单直接返回,单独处理
127 $this->setTypeSevenEdit($this->param); 127 $this->setTypeSevenEdit($this->param);
@@ -141,11 +141,11 @@ class ProjectLogic extends BaseLogic @@ -141,11 +141,11 @@ class ProjectLogic extends BaseLogic
141 //创建站点 141 //创建站点
142 // $this->createSite($this->param); 142 // $this->createSite($this->param);
143 } 143 }
144 -// DB::commit();  
145 -// }catch (\Exception $e){  
146 -// DB::rollBack();  
147 -// $this->fail('请填写完整后再提交');  
148 -// } 144 + DB::commit();
  145 + }catch (\Exception $e){
  146 + DB::rollBack();
  147 + $this->fail('系统错误,请联系开发人员');
  148 + }
149 (new SyncService())->projectAcceptAddress($this->param['id']); 149 (new SyncService())->projectAcceptAddress($this->param['id']);
150 return $this->success(); 150 return $this->success();
151 } 151 }