作者 lyh

gx

... ... @@ -146,7 +146,7 @@ class OnlineController extends BaseController
$this->request->validate([
'project_id'=>'required',
],[
'project_id.required' => 'ID不能为空',
'project_id.required' => 'project_id不能为空',
]);
$onlineCheckModel = new OnlineCheck();
$info = $onlineCheckModel->read(['project_id'=>$this->param['project_id']]);
... ...
... ... @@ -412,11 +412,8 @@ class BTemplateLogic extends BaseLogic
*/
public function templateSaveParam($param){
$param['project_id'] = $this->user['project_id'];
if($param['source'] == 1){//首页
$param['html'] = characterTruncation($param['html'],'/<style id="globalsojs-header">(.*?)<\/footer>/s');
}else{
$param['html'] = $param['main_html'];
}
$param['html'] = $param['main_html'];
unset($param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']);
return $this->success($param);
}
... ...