|
...
|
...
|
@@ -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不能为空',
|
|
|
|
]);
|
...
|
...
|
|