作者 lyh

gx

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