作者 刘锟

小语种自定义跳转链接

... ... @@ -31,7 +31,8 @@ class ProjectCountryLogic extends BaseLogic
$lists['country_lists'] = $this->countryListsFormat($lists['country_lists']);
$lists['country_sort'] = $this->countrySortFormat($lists['country_sort']);
$lists['country_custom'] = $this->countryCustomFormat();
$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);
}
... ... @@ -97,10 +98,4 @@ class ProjectCountryLogic extends BaseLogic
return $country_sort;
}
protected function countryCustomFormat(){
$custom_model = new CountryCustom();
$custom_info = $custom_model->read(['project_id'=>$this->user['project_id']],['language_id','custom_domain','is_create','type','private_key','private_cert']);
return $custom_info ? $custom_info : [];
}
}
... ...