作者 lyh

gx

... ... @@ -46,12 +46,12 @@ class ReplaceHtmlController extends BaseController
public function replaceTemplateMainHtml(ReplaceHtmlLogic $logic){
$this->request->validate([
'name'=>'required',
'html'=>'required',
// 'html'=>'required',
'old_html'=>'required',
'project_id'=>'required',
],[
'name.required' => '需替换页面标识不能为空',
'html.required' => 'html不能为空',
// 'html.required' => 'html不能为空',
'old_html.required' => '替换前的html不能为空',
'project_id.required' => 'project_id不能为空',
]);
... ...
... ... @@ -156,7 +156,7 @@ class ReplaceHtmlLogic extends BaseLogic
'template_id'=>$template_id,
'status'=>$this->model::STATUS,
'old_html'=>$param['old_html'],
'html'=>$param['html'],
'html'=>$param['html'] ?? '',
'project_id'=>$param['project_id'],
'total_num'=>0,
'operator_id'=>$this->manager['id']
... ...