|
...
|
...
|
@@ -35,22 +35,40 @@ class ProjectCountryController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 自定义语种跳转链接
|
|
|
|
* 设置语种自定义跳转链接
|
|
|
|
* @param DomainInfoLogic $domainInfoLogic
|
|
|
|
* @author Akun
|
|
|
|
* @date 2024/03/05 9:47
|
|
|
|
*/
|
|
|
|
public function custom(DomainInfoLogic $domainInfoLogic){
|
|
|
|
public function custom_save(DomainInfoLogic $domainInfoLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'language_id'=>'required',
|
|
|
|
'custom_domain'=>'required',
|
|
|
|
'is_create'=>'required',
|
|
|
|
'is_create'=>'required'
|
|
|
|
],[
|
|
|
|
'language_id.required' => 'language_id不能为空',
|
|
|
|
'custom_domain.required' => 'custom_domain不能为空',
|
|
|
|
'is_create.required' => 'is_create不能为空',
|
|
|
|
'is_create.required' => 'is_create不能为空'
|
|
|
|
]);
|
|
|
|
$domainInfoLogic->country_custom($this->user['project_id']);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 清除语种自定义跳转链接
|
|
|
|
* @param ProjectCountryLogic $projectCountryLogic
|
|
|
|
* @author Akun
|
|
|
|
* @date 2024/03/05 10:20
|
|
|
|
*/
|
|
|
|
public function custom_del(ProjectCountryLogic $projectCountryLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'language_id'=>'required'
|
|
|
|
],[
|
|
|
|
'language_id.required' => 'language_id不能为空'
|
|
|
|
]);
|
|
|
|
|
|
|
|
$projectCountryLogic->country_custom_del();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|