正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -43,6 +43,7 @@ class ProductLogic extends BaseLogic | @@ -43,6 +43,7 @@ class ProductLogic extends BaseLogic | ||
| 43 | $extend = $this->handleExtent(); | 43 | $extend = $this->handleExtent(); |
| 44 | //单独处理分类 | 44 | //单独处理分类 |
| 45 | $category_ids = $this->handleCategory(); | 45 | $category_ids = $this->handleCategory(); |
| 46 | + $keyword_arr = $this->param['keyword_id'] ?? []; | ||
| 46 | //处理其他字段 | 47 | //处理其他字段 |
| 47 | $this->param = $this->handleSaveParam($this->param); | 48 | $this->param = $this->handleSaveParam($this->param); |
| 48 | try { | 49 | try { |
| @@ -66,7 +67,7 @@ class ProductLogic extends BaseLogic | @@ -66,7 +67,7 @@ class ProductLogic extends BaseLogic | ||
| 66 | } | 67 | } |
| 67 | //产品分类关联 | 68 | //产品分类关联 |
| 68 | CategoryRelated::saveRelated($id, $category_ids); | 69 | CategoryRelated::saveRelated($id, $category_ids); |
| 69 | - KeywordRelated::saveRelated($id,$category_ids); | 70 | + KeywordRelated::saveRelated($id,$keyword_arr); |
| 70 | //更新产品新描述 | 71 | //更新产品新描述 |
| 71 | $detailLogic = new DetailLogic(); | 72 | $detailLogic = new DetailLogic(); |
| 72 | $detailLogic->saveDetail($id,$this->param['data'] ?? []); | 73 | $detailLogic->saveDetail($id,$this->param['data'] ?? []); |
-
请 注册 或 登录 后发表评论