作者 lyh

gx

@@ -215,7 +215,7 @@ class BTemplateLogic extends BaseLogic @@ -215,7 +215,7 @@ class BTemplateLogic extends BaseLogic
215 public function getCommonMain($source,$source_id,$is_custom){ 215 public function getCommonMain($source,$source_id,$is_custom){
216 $data = []; 216 $data = [];
217 if($is_custom == BTemplate::SOURCE_CUSTOM){ 217 if($is_custom == BTemplate::SOURCE_CUSTOM){
218 - if($source_id != 0){$type = BTemplate::TYPE_SIX;}else{$type = BTemplate::TYPE_SEVEN;} 218 + if($source_id != 0){$type = BTemplate::TYPE_CUSTOM_DETAIL;}else{$type = BTemplate::TYPE_CUSTOM_LIST;}
219 }else{ 219 }else{
220 if ($source == BTemplate::SOURCE_PRODUCT) {if ($source_id != 0) {$type = BTemplate::TYPE_TWO;} else {$type = BTemplate::TYPE_THREE;}} 220 if ($source == BTemplate::SOURCE_PRODUCT) {if ($source_id != 0) {$type = BTemplate::TYPE_TWO;} else {$type = BTemplate::TYPE_THREE;}}
221 if ($source == BTemplate::SOURCE_BLOG) {if ($source_id != 0) {$type = BTemplate::TYPE_FOUR;} else {$type = BTemplate::TYPE_FIVE;}} 221 if ($source == BTemplate::SOURCE_BLOG) {if ($source_id != 0) {$type = BTemplate::TYPE_FOUR;} else {$type = BTemplate::TYPE_FIVE;}}
@@ -23,7 +23,7 @@ class ProjectCountryLogic extends BaseLogic @@ -23,7 +23,7 @@ class ProjectCountryLogic extends BaseLogic
23 public function country_info(){ 23 public function country_info(){
24 $lists = $this->model->read(['project_id'=>$this->user['project_id']]); 24 $lists = $this->model->read(['project_id'=>$this->user['project_id']]);
25 if (empty($lists)){ 25 if (empty($lists)){
26 - return []; 26 + $lists['country_lists'] = '';
27 } 27 }
28 $lists['country_lists'] = $this->countryListsFormat($lists['country_lists']); 28 $lists['country_lists'] = $this->countryListsFormat($lists['country_lists']);
29 return $this->success($lists); 29 return $this->success($lists);
@@ -36,6 +36,9 @@ class BTemplate extends Base @@ -36,6 +36,9 @@ class BTemplate extends Base
36 const TYPE_SEVEN = 7;//新闻列表 36 const TYPE_SEVEN = 7;//新闻列表
37 const TYPE_EIGHT = 8;//自定义页面 37 const TYPE_EIGHT = 8;//自定义页面
38 38
  39 + const TYPE_CUSTOM_DETAIL = 11;//扩展详情
  40 + const TYPE_CUSTOM_LIST = 12;//扩展列表
  41 +
39 protected $table = 'gl_web_template'; 42 protected $table = 'gl_web_template';
40 //连接数据库 43 //连接数据库
41 protected $connection = 'custom_mysql'; 44 protected $connection = 'custom_mysql';