作者 lyh

gx

@@ -10,11 +10,23 @@ class WebSettingHtmlController extends BaseController @@ -10,11 +10,23 @@ class WebSettingHtmlController extends BaseController
10 { 10 {
11 /** 11 /**
12 * @name :(获取并设置第三方代码)read 12 * @name :(获取并设置第三方代码)read
  13 + * @param :(head_html,body_html,footer_html)
13 * @author :lyh 14 * @author :lyh
14 * @method :post 15 * @method :post
15 * @time :2023/4/28 14:45 16 * @time :2023/4/28 14:45
16 */ 17 */
17 public function save(WebSettingHtmlLogic $webSettingHtmlLogic){ 18 public function save(WebSettingHtmlLogic $webSettingHtmlLogic){
  19 + if(isset($this->param) && !empty($this->param)){
  20 + $this->request->validate([
  21 + 'head_html'=>'required',
  22 + 'body_html'=>'required',
  23 + 'footer_html'=>'required'
  24 + ],[
  25 + 'head_html.required' => 'head_html不能为空',
  26 + 'body_html.required' => 'body_html不能为空',
  27 + 'footer_html.required' => 'footer_html不能为空'
  28 + ]);
  29 + }
18 $info = $webSettingHtmlLogic->setting_html_save(); 30 $info = $webSettingHtmlLogic->setting_html_save();
19 $this->response('success',Code::SUCCESS,$info); 31 $this->response('success',Code::SUCCESS,$info);
20 } 32 }
@@ -24,7 +24,7 @@ class WebSettingServiceLogic extends BaseLogic @@ -24,7 +24,7 @@ class WebSettingServiceLogic extends BaseLogic
24 * @time :2023/5/4 11:23 24 * @time :2023/5/4 11:23
25 */ 25 */
26 public function setting_service_list(){ 26 public function setting_service_list(){
27 - $list = $this->model->list(['project_id'=>$this->param['project_id']]); 27 + $list = $this->model->list(['project_id'=>$this->user['project_id']]);
28 return $this->success($list); 28 return $this->success($list);
29 } 29 }
30 30