正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -276,8 +276,8 @@ class BTemplateLogic extends BaseLogic | @@ -276,8 +276,8 @@ class BTemplateLogic extends BaseLogic | ||
| 276 | public function templateSave(){ | 276 | public function templateSave(){ |
| 277 | //演示项目不允许修改 | 277 | //演示项目不允许修改 |
| 278 | $this->showProjectNoEdit($this->param['source']); | 278 | $this->showProjectNoEdit($this->param['source']); |
| 279 | - DB::beginTransaction(); | ||
| 280 | - try { | 279 | +// DB::beginTransaction(); |
| 280 | +// try { | ||
| 281 | $this->param = $this->handleDefaultString($this->param);//设置默认字符 | 281 | $this->param = $this->handleDefaultString($this->param);//设置默认字符 |
| 282 | $templateInfo = $this->webTemplateInfo($this->param['template_id'],$this->param['source'], | 282 | $templateInfo = $this->webTemplateInfo($this->param['template_id'],$this->param['source'], |
| 283 | $this->param['source_id'],$this->param['is_custom']); | 283 | $this->param['source_id'],$this->param['is_custom']); |
| @@ -291,11 +291,11 @@ class BTemplateLogic extends BaseLogic | @@ -291,11 +291,11 @@ class BTemplateLogic extends BaseLogic | ||
| 291 | //更新头部信息 | 291 | //更新头部信息 |
| 292 | $this->saveCommonHtml($this->param['html'],$this->param['source'],$this->param['source_id'],$this->param['template_id']); | 292 | $this->saveCommonHtml($this->param['html'],$this->param['source'],$this->param['source_id'],$this->param['template_id']); |
| 293 | $this->setOperationRecords($this->param['html'],$this->param['source'],$this->param['source_id'],$this->param['template_id'],$this->param['is_custom']); | 293 | $this->setOperationRecords($this->param['html'],$this->param['source'],$this->param['source_id'],$this->param['template_id'],$this->param['is_custom']); |
| 294 | - DB::commit(); | ||
| 295 | - }catch (\Exception $e){ | ||
| 296 | - DB::rollBack(); | ||
| 297 | - $this->fail('系统错误,请联系管理员'); | ||
| 298 | - } | 294 | +// DB::commit(); |
| 295 | +// }catch (\Exception $e){ | ||
| 296 | +// DB::rollBack(); | ||
| 297 | +// $this->fail('系统错误,请联系管理员'); | ||
| 298 | +// } | ||
| 299 | //通知更新 | 299 | //通知更新 |
| 300 | $this->homeOrProduct($this->param['source'],$this->param['source_id'],$this->param['is_custom']); | 300 | $this->homeOrProduct($this->param['source'],$this->param['source_id'],$this->param['is_custom']); |
| 301 | return $this->success(); | 301 | return $this->success(); |
-
请 注册 或 登录 后发表评论