|
@@ -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
|
|