|
...
|
...
|
@@ -31,8 +31,6 @@ class ProjectCountryLogic extends BaseLogic |
|
|
|
$lists['country_lists'] = $this->countryListsFormat($lists['country_lists']);
|
|
|
|
$lists['country_sort'] = $this->countrySortFormat($lists['country_sort']);
|
|
|
|
|
|
|
|
$custom_model = new CountryCustom();
|
|
|
|
$lists['country_custom'] = $custom_model->list(['project_id'=>$this->user['project_id']],'id',['language_id','custom_domain','is_create','type','private_key','private_cert']);
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -90,6 +88,19 @@ class ProjectCountryLogic extends BaseLogic |
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取语种自定义跳转详情
|
|
|
|
* @return array|bool
|
|
|
|
* @author Akun
|
|
|
|
* @date 2024/03/06 14:38
|
|
|
|
*/
|
|
|
|
public function country_custom_info(){
|
|
|
|
$custom_model = new CountryCustom();
|
|
|
|
$info = $custom_model->read(['project_id'=>$this->user['project_id'],'language_id'=>$this->param['language_id']],['language_id','custom_domain','is_create','type','private_key','private_cert']);
|
|
|
|
|
|
|
|
return $this->success($info?:[]);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function countryListsFormat($country_lists)
|
|
|
|
{
|
|
|
|
if(empty($country_lists)){
|
...
|
...
|
|