作者 lyh

gx

@@ -706,7 +706,7 @@ class ProjectLogic extends BaseLogic @@ -706,7 +706,7 @@ class ProjectLogic extends BaseLogic
706 public function saveOtherProject(){ 706 public function saveOtherProject(){
707 $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); 707 $rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
708 if($rs === false){ 708 if($rs === false){
709 - $this->fail('系统错误,请联系管理员'); 709 + $this->fail('保存失败,请联系管理员');
710 } 710 }
711 return $this->success($this->param); 711 return $this->success($this->param);
712 } 712 }
@@ -446,7 +446,7 @@ class BTemplateLogic extends BaseLogic @@ -446,7 +446,7 @@ class BTemplateLogic extends BaseLogic
446 $param['footer_html'] = characterTruncation($html,'/<footer\b[^>]*>(.*?)<\/footer>/s'); 446 $param['footer_html'] = characterTruncation($html,'/<footer\b[^>]*>(.*?)<\/footer>/s');
447 $param['head_css'] = characterTruncation($html,'/<style id="globalsojs-header">(.*?)<\/style>/s'); 447 $param['head_css'] = characterTruncation($html,'/<style id="globalsojs-header">(.*?)<\/style>/s');
448 $param['footer_css'] = characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<\/style>/s'); 448 $param['footer_css'] = characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<\/style>/s');
449 - $footer_other = str_replace('<header','',characterTruncation($param['html'],'/<style id="globalsojs-footer">(.*?)<header/s')); 449 + $footer_other = str_replace('<header','',characterTruncation($html,'/<style id="globalsojs-footer">(.*?)<header/s'));
450 $param['other'] = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', '', $footer_other); 450 $param['other'] = preg_replace('/<style id="globalsojs-footer">(.*?)<\/style>/s', '', $footer_other);
451 return $this->success($param); 451 return $this->success($param);
452 } 452 }