|
...
|
...
|
@@ -173,7 +173,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function templateSave(){
|
|
|
|
//查询当前模版是否已保存
|
|
|
|
try {
|
|
|
|
// try {
|
|
|
|
$info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']);
|
|
|
|
//字符串截取
|
|
|
|
$this->param = $this->stringProcessing($this->param);
|
|
...
|
...
|
@@ -184,9 +184,9 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$this->model->edit($this->param,['id'=>$info['id']]);
|
|
|
|
}
|
|
|
|
$this->setTemplateLog($this->param);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// $this->fail('error');
|
|
|
|
// }
|
|
|
|
//通知更新
|
|
|
|
$this->homeOrProduct($this->param['source'],$this->param['source_id']);
|
|
|
|
return $this->success();
|
...
|
...
|
|