作者 lyh

gx

@@ -50,7 +50,6 @@ class HeaderFooter extends Command @@ -50,7 +50,6 @@ class HeaderFooter extends Command
50 echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; 50 echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
51 ProjectServer::useProject($v['id']); 51 ProjectServer::useProject($v['id']);
52 DB::table('gl_web_template_com')->truncate(); 52 DB::table('gl_web_template_com')->truncate();
53 - $templateComModel = new BTemplateCom();  
54 $this->saveTemplateCom($v['id']); 53 $this->saveTemplateCom($v['id']);
55 DB::disconnect('custom_mysql'); 54 DB::disconnect('custom_mysql');
56 } 55 }
@@ -131,7 +131,7 @@ class CustomTemplateLogic extends BaseLogic @@ -131,7 +131,7 @@ class CustomTemplateLogic extends BaseLogic
131 if($rs === false){ 131 if($rs === false){
132 $this->fail('系统错误,请联系管理'); 132 $this->fail('系统错误,请联系管理');
133 } 133 }
134 - $this->setTemplateLog($bSettingInfo['template_id'],$html,$this->param['id']); 134 + $this->setTemplateLog($bSettingInfo['template_id'] ?? 0,$html,$this->param['id']);
135 //通知 135 //通知
136 $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']); 136 $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']);
137 $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$info['url']]); 137 $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$info['url']]);