作者 lyh

gx

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