作者 lyh

心跳设置

... ... @@ -87,7 +87,7 @@ class ReplaceHtmlLog extends Command
if($info['template_id'] == 0){
$bTemplateModel->formatQuery($condition)->update(['html' => DB::raw("REPLACE(html, '$old_html', '$html')")]);
}else{
$bTemplateModel->formatQuery($condition)->update(['main_html' => DB::raw("REPLACE(main_html, ?, ?)", [$old_html, $html])]);
$bTemplateModel->formatQuery($condition)->update(['main_html' => DB::raw("REPLACE(main_html, $old_html, $html)")]);
}
return true;
}
... ...