作者 刘锟

小语种自定义跳转链接

... ... @@ -30,6 +30,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();
return $this->success($lists);
}
... ... @@ -95,4 +97,10 @@ 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_vert']);
return $custom_info ? $custom_info : [];
}
}
... ...