更新
This commit is contained in:
parent
53dcf129fa
commit
1b863887ea
@ -94,7 +94,7 @@ class StoreMicro extends BaseController
|
|||||||
// }
|
// }
|
||||||
$find['attrValue']=[
|
$find['attrValue']=[
|
||||||
['image'=>$find['image'],'price'=>$price,'cost'=>$find['cost'],'ot_price'=>$find['ot_price'],
|
['image'=>$find['image'],'price'=>$price,'cost'=>$find['cost'],'ot_price'=>$find['ot_price'],
|
||||||
'svip_price'=>$find['svip_price'],'stock'=>$stock,'bar_code'=>$find['bar_code'],'weight'=>0,'volume'=>0,'detail'=>''
|
'svip_price'=>0,'stock'=>$stock,'bar_code'=>$find['bar_code'],'weight'=>0,'volume'=>0,'detail'=>''
|
||||||
]];
|
]];
|
||||||
if($mer['type_id']==12){
|
if($mer['type_id']==12){
|
||||||
$product_type=98;
|
$product_type=98;
|
||||||
@ -123,6 +123,8 @@ 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;
|
||||||
|
$find['svip_price_type'] = 0;
|
||||||
|
$find['svip_price'] =0;
|
||||||
unset($find['create_time'], $find['id']);
|
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);
|
||||||
|
@ -26,12 +26,12 @@ class ProductCreate
|
|||||||
}
|
}
|
||||||
|
|
||||||
//查询市级供应链
|
//查询市级供应链
|
||||||
$mer = Db::name('merchant')->where('status', 1)->where('mer_state', 1)->where('category_id', $merchant['category_id'])->where('type_id',Merchant::TypeSupplyChain)->value('mer_id');
|
$mer = Db::name('merchant')->where('status', 1)->where('mer_state', 1)->where('category_id', $merchant['category_id'])->where('type_id',Merchant::TypePlatform)->value('mer_id');
|
||||||
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('product_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){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// 根据支持同步到云商的商户进行同步操作
|
// 根据支持同步到云商的商户进行同步操作
|
||||||
|
4
vendor/composer/installed.php
vendored
4
vendor/composer/installed.php
vendored
@ -3,7 +3,7 @@
|
|||||||
'name' => 'topthink/think',
|
'name' => 'topthink/think',
|
||||||
'pretty_version' => 'dev-master',
|
'pretty_version' => 'dev-master',
|
||||||
'version' => 'dev-master',
|
'version' => 'dev-master',
|
||||||
'reference' => '6d8207a27b3d637017e628f972c8353bc6645c03',
|
'reference' => '53dcf129fabc042c56f7ba8ccb2338c5779fd41b',
|
||||||
'type' => 'project',
|
'type' => 'project',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@ -952,7 +952,7 @@
|
|||||||
'topthink/think' => array(
|
'topthink/think' => array(
|
||||||
'pretty_version' => 'dev-master',
|
'pretty_version' => 'dev-master',
|
||||||
'version' => 'dev-master',
|
'version' => 'dev-master',
|
||||||
'reference' => '6d8207a27b3d637017e628f972c8353bc6645c03',
|
'reference' => '53dcf129fabc042c56f7ba8ccb2338c5779fd41b',
|
||||||
'type' => 'project',
|
'type' => 'project',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// This file is automatically generated at:2023-11-02 14:54:13
|
// This file is automatically generated at:2023-11-03 09:17:56
|
||||||
declare (strict_types = 1);
|
declare (strict_types = 1);
|
||||||
return array (
|
return array (
|
||||||
0 => 'think\\queue\\Service',
|
0 => 'think\\queue\\Service',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user