作者 lyh

gx

... ... @@ -163,7 +163,7 @@ class ReplaceHtml extends Command
'is_list'=>$v['is_list'],
'is_rollback'=>$info['is_rollback'],
'template_id'=>$info['template_id'],
'name'=>$name,
'source_name'=>$name,
'created_at'=>date('Y-m-d H:i:s'),
'updated_at'=>date('Y-m-d H:i:s')
];
... ...
... ... @@ -141,6 +141,7 @@ class ReplaceHtmlLogic extends BaseLogic
$condition = ['source'=>$typeInfo['source'],'is_custom'=>$typeInfo['is_custom'], 'is_list'=>$typeInfo['is_list'],
'template_id'=>$template_id,'main_html'=>['like','%'.$this->param['old_html'].'%']];
$total_num = $bTemplateModel->formatQuery($condition)->count();
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($total_num, true) . PHP_EOL, FILE_APPEND);
}
DB::disconnect('custom_mysql');
$replaceId = $this->saveReplaceHtml($this->param,$typeInfo,$template_id,$total_num ?? 0);
... ...