|
...
|
...
|
@@ -49,8 +49,8 @@ class KeywordLogic extends BaseLogic |
|
|
|
* @time :2023/8/23 16:50
|
|
|
|
*/
|
|
|
|
public function keywordSave(){
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
// DB::beginTransaction();
|
|
|
|
// try {
|
|
|
|
$this->param = $this->handleSaveParam($this->param);
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']],['id','route']);
|
|
...
|
...
|
@@ -67,11 +67,11 @@ class KeywordLogic extends BaseLogic |
|
|
|
}
|
|
|
|
//清除缓存
|
|
|
|
Common::del_user_cache('product_keyword',$this->user['project_id']);
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
|
|
|
$this->fail('保存失败');
|
|
|
|
}
|
|
|
|
// DB::commit();
|
|
|
|
// }catch (\Exception $e){
|
|
|
|
// DB::rollBack();
|
|
|
|
// $this->fail('保存失败');
|
|
|
|
// }
|
|
|
|
//通知更新
|
|
|
|
$this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_PRODUCT_KEYWORD, 'route'=>$route]);
|
|
|
|
return $this->success();
|
...
|
...
|
|