wugg před 7 měsíci
rodič
revize
a5761e7be3
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      app/command/sysGood.php

+ 2 - 0
app/command/sysGood.php

@@ -110,6 +110,7 @@ class sysGood extends Command
         foreach ($goods as $item) {
             if (!isset($idsArr[$item['spuCode']]) ||($idsArr[$item['spuCode']]['updatetime'] != $item['updatetime']) || $idsArr[$item['spuCode']]['status'] != 2) {
                 $item['id'] = $idsArr[$item['spuCode']]['id'] ?? null;
+                echo "【".date('Y-m-d H:i:s')."】 添加商品{$item['spuCode']}进入类目表\r\n";
                 $saveAll[] = $item->toArray();
             }
         }
@@ -131,6 +132,7 @@ class sysGood extends Command
     		$add=[];
     		foreach($list as $item){
     			unset($item['id']);
+    			  echo '【'.date('Y-m-d H:i:s')."】 添加商品{$item['spuCode']}进入组合商品目表\r\n";
     			$ist=GoodCombind::where(['spuCode'=>$item['spuCode'],'childCode'=>$item['childCode']])->findOrEmpty();
     			if($ist->isEmpty())$add[]=$item;
     		}