shensong 5 gadi atpakaļ
vecāks
revīzija
afdab064c3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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'];