|
...
|
...
|
@@ -132,9 +132,11 @@ class ATemplateLogic extends BaseLogic |
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$serviceSettingModel->del(['type'=>2]);
|
|
|
|
$this->param['type'] = 2;
|
|
|
|
$this->param['key'] = 'head';
|
|
|
|
$serviceSettingModel->add($this->param);
|
|
|
|
$data = [
|
|
|
|
['type'=>2,'key'=>'head','values'=>$this->param['head'],'created_at'=>date('Y-m-d H:i:s'),'updated_at'=>date('Y-m-d H:i:s')],
|
|
|
|
['type'=>2,'key'=>'footer','values'=>$this->param['footer'],'created_at'=>date('Y-m-d H:i:s'),'updated_at'=>date('Y-m-d H:i:s')]
|
|
|
|
];
|
|
|
|
$serviceSettingModel->insert($data);
|
|
|
|
DB::commit();
|
|
|
|
}catch (Exception $e){
|
|
|
|
DB::rollBack();
|
...
|
...
|
|