作者 lyh

gx

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