作者 lyh

gx

@@ -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 {