This commit is contained in:
mkm 2023-11-02 11:53:11 +08:00
parent 708851db26
commit 6dbcea27d6
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ class StoreMicro extends BaseController
$find['spec_type'] = 0; $find['spec_type'] = 0;
$find['delivery_free'] = 0; $find['delivery_free'] = 0;
$find['cate_id'] = $store_category_id; $find['cate_id'] = $store_category_id;
unset($find['create_time']); unset($find['create_time'], $find['id']);
} }
$a= app()->make( ProductRepository::class)->create($find,$product_type,1); $a= app()->make( ProductRepository::class)->create($find,$product_type,1);
if($a){ if($a){

View File

@ -30,7 +30,7 @@ class ProductCreate
if($mer==null){ if($mer==null){
return false; return false;
} }
$product_id=Db::name('store_product')->where('mer_id',$mer)->where('bar_code', $product['bar_code'])->value('id'); $product_id=Db::name('store_product')->where('mer_id',$mer)->where('bar_code', $product['bar_code'])->value('product_id');
if($product_id==null){ if($product_id==null){
return false; return false;
} }