作者 刘锟

小语种自定义跳转链接

@@ -30,6 +30,8 @@ class ProjectCountryLogic extends BaseLogic @@ -30,6 +30,8 @@ class ProjectCountryLogic extends BaseLogic
30 } 30 }
31 $lists['country_lists'] = $this->countryListsFormat($lists['country_lists']); 31 $lists['country_lists'] = $this->countryListsFormat($lists['country_lists']);
32 $lists['country_sort'] = $this->countrySortFormat($lists['country_sort']); 32 $lists['country_sort'] = $this->countrySortFormat($lists['country_sort']);
  33 +
  34 + $lists['country_custom'] = $this->countryCustomFormat();
33 return $this->success($lists); 35 return $this->success($lists);
34 } 36 }
35 37
@@ -95,4 +97,10 @@ class ProjectCountryLogic extends BaseLogic @@ -95,4 +97,10 @@ class ProjectCountryLogic extends BaseLogic
95 97
96 return $country_sort; 98 return $country_sort;
97 } 99 }
  100 +
  101 + protected function countryCustomFormat(){
  102 + $custom_model = new CountryCustom();
  103 + $custom_info = $custom_model->read(['project_id'=>$this->user['project_id']],['language_id','custom_domain','is_create','type','private_key','private_vert']);
  104 + return $custom_info ? $custom_info : [];
  105 + }
98 } 106 }