|
...
|
...
|
@@ -276,8 +276,8 @@ class BTemplateLogic extends BaseLogic |
|
|
|
public function templateSave(){
|
|
|
|
//演示项目不允许修改
|
|
|
|
$this->showProjectNoEdit($this->param['source']);
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
// DB::beginTransaction();
|
|
|
|
// try {
|
|
|
|
$this->param = $this->handleDefaultString($this->param);//设置默认字符
|
|
|
|
$templateInfo = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],
|
|
|
|
$this->param['source_id'],$this->param['is_custom']);
|
|
...
|
...
|
@@ -291,11 +291,11 @@ class BTemplateLogic extends BaseLogic |
|
|
|
//更新头部信息
|
|
|
|
$this->saveCommonHtml($this->param['html'],$this->param['source'],$this->param['source_id'],$this->param['template_id']);
|
|
|
|
$this->setOperationRecords($this->param['html'],$this->param['source'],$this->param['source_id'],$this->param['template_id'],$this->param['is_custom']);
|
|
|
|
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'],$this->param['is_custom']);
|
|
|
|
return $this->success();
|
...
|
...
|
|