wugg 7 月之前
父節點
當前提交
f848d31b8a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/command/sysGood.php

+ 4 - 1
app/command/sysGood.php

@@ -27,7 +27,10 @@ class sysGood extends Command
     protected function execute(Input $input, Output $output)
     {
         $this->date = date('Y-m-d H:i:s', time() - 3600);
-
+      //  $this->date = "2024-08-05 00:00:00";
+	    $goodset =Cache::store('redis')->get('goodSet');
+	    if($goodset ==1) return;
+	    Cache::store('redis')->set('goodSet',1,1800);
         try {
             $this->processGoods('goodBasic');
             $this->processGoods('goodZx');