瀏覽代碼

分销商

shensong 5 年之前
父節點
當前提交
afdab064c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/SyncGoods.php

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

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