|
...
|
...
|
@@ -73,7 +73,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
if($info['extend_type'] != 0){
|
|
|
|
$info['type'] = $info['extend_type'];
|
|
|
|
}
|
|
|
|
$info['domain_url'] = (new DomainInfo())->getDomain($info['deploy_optimize']['domain'] ?? 0);
|
|
|
|
// $info['domain_url'] = (new DomainInfo())->getDomain($info['deploy_optimize']['domain'] ?? 0);
|
|
|
|
//升级项目初始上传配置
|
|
|
|
if(empty($info['upload_config'])){
|
|
|
|
$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 |
|
|
|
* @time :2023/8/30 11:57
|
|
|
|
*/
|
|
|
|
public function projectSave(){
|
|
|
|
// DB::beginTransaction();
|
|
|
|
// try {
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
if($this->param['type'] == Project::TYPE_SEVEN){
|
|
|
|
//错误单直接返回,单独处理
|
|
|
|
$this->setTypeSevenEdit($this->param);
|
|
...
|
...
|
@@ -141,11 +141,11 @@ class ProjectLogic extends BaseLogic |
|
|
|
//创建站点
|
|
|
|
// $this->createSite($this->param);
|
|
|
|
}
|
|
|
|
// DB::commit();
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// DB::rollBack();
|
|
|
|
// $this->fail('请填写完整后再提交');
|
|
|
|
// }
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
|
|
|
$this->fail('系统错误,请联系开发人员');
|
|
|
|
}
|
|
|
|
(new SyncService())->projectAcceptAddress($this->param['id']);
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|