diff --git a/app/controller/api/store/product/StoreMicro.php b/app/controller/api/store/product/StoreMicro.php index 814f47ec..b8c4e117 100644 --- a/app/controller/api/store/product/StoreMicro.php +++ b/app/controller/api/store/product/StoreMicro.php @@ -121,7 +121,7 @@ class StoreMicro extends BaseController $find['cate_id'] = $store_category_id; unset($find['create_time']); } - $a= app()->make( ProductRepository::class)->create($find,0,1); + $a= app()->make( ProductRepository::class)->create($find,$product_type,1); if($a){ return app('json')->success(['data'=>['product_id'=>$a],'msg'=>'导入成功']); }else{