Browse Source

分销商

shensong 5 years ago
parent
commit
afdab064c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/SyncGoods.php

+ 1 - 1
app/Console/Commands/SyncGoods.php

55
                 foreach ($result as $sku){
55
                 foreach ($result as $sku){
56
                     //查询规格信息
56
                     //查询规格信息
57
                     $skuInfo = DB::table('seafood_fx.goods_skus')->where('code',$sku['code'])->first();
57
                     $skuInfo = DB::table('seafood_fx.goods_skus')->where('code',$sku['code'])->first();
58
-                    if($skuInfo){
58
+                    if(!$skuInfo){
59
                         //增加shop sku
59
                         //增加shop sku
60
                         $shopArr = array();
60
                         $shopArr = array();
61
                         $shopArr['outerCode'] = config('constants.GOODS_PREFIX').$sku['id'];
61
                         $shopArr['outerCode'] = config('constants.GOODS_PREFIX').$sku['id'];