作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !1587
@@ -43,14 +43,17 @@ class ProjectCountryController extends BaseController @@ -43,14 +43,17 @@ class ProjectCountryController extends BaseController
43 public function custom_save(DomainInfoLogic $domainInfoLogic){ 43 public function custom_save(DomainInfoLogic $domainInfoLogic){
44 $this->request->validate([ 44 $this->request->validate([
45 'language_id'=>'required', 45 'language_id'=>'required',
46 - 'custom_domain'=>'required',  
47 'is_create'=>'required' 46 'is_create'=>'required'
48 ],[ 47 ],[
49 'language_id.required' => 'language_id不能为空', 48 'language_id.required' => 'language_id不能为空',
50 - 'custom_domain.required' => 'custom_domain不能为空',  
51 'is_create.required' => 'is_create不能为空' 49 'is_create.required' => 'is_create不能为空'
52 ]); 50 ]);
53 - $domainInfoLogic->country_custom($this->user['project_id']); 51 + if(isset($this->param['custom_domain']) && $this->param['custom_domain']){
  52 + $domainInfoLogic->country_custom($this->user['project_id']);
  53 + }else{
  54 + $projectCountryLogic = new ProjectCountryLogic();
  55 + $projectCountryLogic->country_custom_del();
  56 + }
54 $this->response('success'); 57 $this->response('success');
55 } 58 }
56 59