作者 lyh

gx

@@ -19,17 +19,6 @@ class WebSettingHtmlController extends BaseController @@ -19,17 +19,6 @@ class WebSettingHtmlController extends BaseController
19 * @time :2023/4/28 14:45 19 * @time :2023/4/28 14:45
20 */ 20 */
21 public function save(WebSettingHtmlLogic $webSettingHtmlLogic){ 21 public function save(WebSettingHtmlLogic $webSettingHtmlLogic){
22 - if(isset($this->param) && !empty($this->param)){  
23 - $this->request->validate([  
24 - 'head_html'=>'required',  
25 - 'body_html'=>'required',  
26 - 'footer_html'=>'required'  
27 - ],[  
28 - 'head_html.required' => 'head_html不能为空',  
29 - 'body_html.required' => 'body_html不能为空',  
30 - 'footer_html.required' => 'footer_html不能为空'  
31 - ]);  
32 - }  
33 $info = $webSettingHtmlLogic->setting_html_save(); 22 $info = $webSettingHtmlLogic->setting_html_save();
34 $this->response('success',Code::SUCCESS,$info); 23 $this->response('success',Code::SUCCESS,$info);
35 } 24 }