作者 lyh

gx

@@ -65,13 +65,8 @@ class BTemplateLogLogic extends BaseLogic @@ -65,13 +65,8 @@ class BTemplateLogLogic extends BaseLogic
65 */ 65 */
66 public function setParam($info){ 66 public function setParam($info){
67 $data = [ 67 $data = [
68 - 'html'=>$info['text'],  
69 - 'head_html'=>$info['head_html'],  
70 - 'head_css'=>$info['head_css'],  
71 'main_html'=>$info['main_html'], 68 'main_html'=>$info['main_html'],
72 'main_css'=>$info['main_css'], 69 'main_css'=>$info['main_css'],
73 - 'footer_html'=>$info['footer_html'],  
74 - 'footer_css'=>$info['footer_css'],  
75 ]; 70 ];
76 return $this->success($data); 71 return $this->success($data);
77 } 72 }
@@ -414,8 +414,7 @@ class BTemplateLogic extends BaseLogic @@ -414,8 +414,7 @@ class BTemplateLogic extends BaseLogic
414 */ 414 */
415 public function templateSaveParam($param){ 415 public function templateSaveParam($param){
416 $param['project_id'] = $this->user['project_id']; 416 $param['project_id'] = $this->user['project_id'];
417 - $param['html'] = $param['main_html'];  
418 - unset($param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']); 417 + unset($param['html'],$param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']);
419 return $this->success($param); 418 return $this->success($param);
420 } 419 }
421 420