更新
This commit is contained in:
parent
09cf4e7001
commit
fc15732888
@ -74,9 +74,9 @@ class StoreMicro extends BaseController
|
|||||||
if ($find) {
|
if ($find) {
|
||||||
|
|
||||||
$exist = Db::name('store_product')->where('source_library_id', $id)->where('mer_id', $mer_id)->find();
|
$exist = Db::name('store_product')->where('source_library_id', $id)->where('mer_id', $mer_id)->find();
|
||||||
if ($exist) {
|
// if ($exist) {
|
||||||
return app('json')->fail('已经导入过该商品了');
|
// return app('json')->fail('已经导入过该商品了');
|
||||||
}
|
// }
|
||||||
$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'=>$find['svip_price'],'stock'=>$stock,'bar_code'=>$find['bar_code'],'weight'=>0,'volume'=>0,'detail'=>''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user