正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -50,6 +50,8 @@ class ProductLogic extends BaseLogic | @@ -50,6 +50,8 @@ class ProductLogic extends BaseLogic | ||
| 50 | if(isset($this->param['category_id']) && !empty($this->param['category_id'])) { | 50 | if(isset($this->param['category_id']) && !empty($this->param['category_id'])) { |
| 51 | $category_ids = $this->getLastCategoryArr($this->param['category_id']); | 51 | $category_ids = $this->getLastCategoryArr($this->param['category_id']); |
| 52 | $this->param['category_id'] = ','.implode(',',$category_ids).','; | 52 | $this->param['category_id'] = ','.implode(',',$category_ids).','; |
| 53 | + }else{ | ||
| 54 | + $this->param['category_id'] = ''; | ||
| 53 | } | 55 | } |
| 54 | DB::connection('custom_mysql')->beginTransaction(); | 56 | DB::connection('custom_mysql')->beginTransaction(); |
| 55 | try { | 57 | try { |
-
请 注册 或 登录 后发表评论