作者 lyh

gx

... ... @@ -261,8 +261,8 @@ class BTemplateLogic extends BaseLogic
$this->fail('演示项目仅支持演示功能,无法更改首页');
}
//查询当前模版是否已保存
DB::beginTransaction();
try {
// DB::beginTransaction();
// try {
$info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']);
//字符串截取
$this->param = $this->stringProcessing($this->param);
... ... @@ -276,11 +276,11 @@ class BTemplateLogic extends BaseLogic
}
//写入操作模版记录
$this->setTemplateLog($this->param);
DB::commit();
}catch (\Exception $e){
DB::rollBack();
$this->fail('系统错误,请联系管理员');
}
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// $this->fail('系统错误,请联系管理员');
// }
//通知更新
$this->homeOrProduct($this->param['source'],$this->param['source_id']);
return $this->success();
... ...