|
@@ -48,8 +48,8 @@ class KeywordLogic extends BaseLogic |
|
@@ -48,8 +48,8 @@ class KeywordLogic extends BaseLogic |
|
48
|
* @time :2023/8/23 16:50
|
48
|
* @time :2023/8/23 16:50
|
|
49
|
*/
|
49
|
*/
|
|
50
|
public function keywordSave(){
|
50
|
public function keywordSave(){
|
|
51
|
- DB::beginTransaction();
|
|
|
|
52
|
- try {
|
51
|
+// DB::beginTransaction();
|
|
|
|
52
|
+// try {
|
|
53
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
53
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
54
|
$id = $this->param['id'];
|
54
|
$id = $this->param['id'];
|
|
55
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
55
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
@@ -61,11 +61,11 @@ class KeywordLogic extends BaseLogic |
|
@@ -61,11 +61,11 @@ class KeywordLogic extends BaseLogic |
|
61
|
}
|
61
|
}
|
|
62
|
//路由映射
|
62
|
//路由映射
|
|
63
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
63
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
64
|
- DB::commit();
|
|
|
|
65
|
- }catch (\Exception $e){
|
|
|
|
66
|
- DB::rollBack();
|
|
|
|
67
|
- $this->fail('保存失败');
|
|
|
|
68
|
- }
|
64
|
+// DB::commit();
|
|
|
|
65
|
+// }catch (\Exception $e){
|
|
|
|
66
|
+// DB::rollBack();
|
|
|
|
67
|
+// $this->fail('保存失败');
|
|
|
|
68
|
+// }
|
|
69
|
//通知更新
|
69
|
//通知更新
|
|
70
|
$this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]);
|
70
|
$this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]);
|
|
71
|
return $this->success();
|
71
|
return $this->success();
|