正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -173,7 +173,7 @@ class BTemplateLogic extends BaseLogic | @@ -173,7 +173,7 @@ class BTemplateLogic extends BaseLogic | ||
| 173 | */ | 173 | */ |
| 174 | public function templateSave(){ | 174 | public function templateSave(){ |
| 175 | //查询当前模版是否已保存 | 175 | //查询当前模版是否已保存 |
| 176 | - try { | 176 | +// try { |
| 177 | $info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']); | 177 | $info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']); |
| 178 | //字符串截取 | 178 | //字符串截取 |
| 179 | $this->param = $this->stringProcessing($this->param); | 179 | $this->param = $this->stringProcessing($this->param); |
| @@ -184,9 +184,9 @@ class BTemplateLogic extends BaseLogic | @@ -184,9 +184,9 @@ class BTemplateLogic extends BaseLogic | ||
| 184 | $this->model->edit($this->param,['id'=>$info['id']]); | 184 | $this->model->edit($this->param,['id'=>$info['id']]); |
| 185 | } | 185 | } |
| 186 | $this->setTemplateLog($this->param); | 186 | $this->setTemplateLog($this->param); |
| 187 | - }catch (\Exception $e){ | ||
| 188 | - $this->fail('error'); | ||
| 189 | - } | 187 | +// }catch (\Exception $e){ |
| 188 | +// $this->fail('error'); | ||
| 189 | +// } | ||
| 190 | //通知更新 | 190 | //通知更新 |
| 191 | $this->homeOrProduct($this->param['source'],$this->param['source_id']); | 191 | $this->homeOrProduct($this->param['source'],$this->param['source_id']); |
| 192 | return $this->success(); | 192 | return $this->success(); |
-
请 注册 或 登录 后发表评论