作者 lyh

gx

@@ -523,9 +523,9 @@ class BTemplateLogic extends BaseLogic @@ -523,9 +523,9 @@ class BTemplateLogic extends BaseLogic
523 $info = $templateComModel->read($condition); 523 $info = $templateComModel->read($condition);
524 if($info === false){ 524 if($info === false){
525 $param = array_merge($param,$condition); 525 $param = array_merge($param,$condition);
526 - $this->model->add($param); 526 + $templateComModel->add($param);
527 }else{ 527 }else{
528 - $this->model->edit($param,$condition); 528 + $templateComModel->edit($param,$condition);
529 } 529 }
530 } 530 }
531 return $this->success(); 531 return $this->success();