作者 lyh

gx脚本

@@ -71,7 +71,7 @@ class lyhDemo extends Command @@ -71,7 +71,7 @@ class lyhDemo extends Command
71 $count = $categoryModel->counts(['id'=>['>',0]]); 71 $count = $categoryModel->counts(['id'=>['>',0]]);
72 if(($info === false) && ($count > 0)){ 72 if(($info === false) && ($count > 0)){
73 $mainModel = new TemplateTypeMain(); 73 $mainModel = new TemplateTypeMain();
74 - $mainInfo = $mainModel->read(['type'=>2,'is_list'=>1,'is_custom'=>0]); 74 + $mainInfo = $mainModel->read(['type'=>2,'is_list'=>1]);
75 $main_html = $mainInfo['main_html']; 75 $main_html = $mainInfo['main_html'];
76 $main_css = "<style id='globalsojs-styles'></style>"; 76 $main_css = "<style id='globalsojs-styles'></style>";
77 //写入一条初始数据 77 //写入一条初始数据