|
...
|
...
|
@@ -260,9 +260,9 @@ class BTemplateLogic extends BaseLogic |
|
|
|
if(($this->user['project_id'] == 1) && (!in_array($this->user['mobile'],$this->model->mobile)) && ($this->param['source'] == 1)){
|
|
|
|
$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();
|
|
...
|
...
|
@@ -413,7 +413,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
public function templateSaveParam($param){
|
|
|
|
$param['project_id'] = $this->user['project_id'];
|
|
|
|
$param['html'] = $param['main_html'];
|
|
|
|
unset($param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']);
|
|
|
|
// unset($param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']);
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|