|
...
|
...
|
@@ -75,13 +75,13 @@ class UpdateMainHtml extends Command |
|
|
|
*/
|
|
|
|
public function editMainHtml($project_id){
|
|
|
|
$templateModel = new BTemplate();
|
|
|
|
$info = $templateModel->read(['source'=>3,'source_id'=>0]);
|
|
|
|
$info = $templateModel->read(['source'=>4,'source_id'=>0]);
|
|
|
|
if($info !== false){
|
|
|
|
$mainModel = new BTemplateMain();
|
|
|
|
$mainInfo = $mainModel->read(['type'=>3,'is_list'=>1]);
|
|
|
|
$mainInfo = $mainModel->read(['type'=>4,'is_list'=>1]);
|
|
|
|
if($mainInfo === false){
|
|
|
|
$data = [
|
|
|
|
'type'=>3,
|
|
|
|
'type'=>4,
|
|
|
|
'is_list'=>1,
|
|
|
|
'main_html'=>$info['main_html'],
|
|
|
|
'main_css'=>$info['main_css'],
|
...
|
...
|
|