作者 刘锟

小语种自定义跳转链接

@@ -31,7 +31,8 @@ class ProjectCountryLogic extends BaseLogic @@ -31,7 +31,8 @@ class ProjectCountryLogic extends BaseLogic
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 33
34 - $lists['country_custom'] = $this->countryCustomFormat(); 34 + $custom_model = new CountryCustom();
  35 + $lists['country_custom'] = $custom_model->list(['project_id'=>$this->user['project_id']],'id',['language_id','custom_domain','is_create','type','private_key','private_cert']);
35 return $this->success($lists); 36 return $this->success($lists);
36 } 37 }
37 38
@@ -97,10 +98,4 @@ class ProjectCountryLogic extends BaseLogic @@ -97,10 +98,4 @@ class ProjectCountryLogic extends BaseLogic
97 98
98 return $country_sort; 99 return $country_sort;
99 } 100 }
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_cert']);  
104 - return $custom_info ? $custom_info : [];  
105 - }  
106 } 101 }