wugg 2 years ago
parent
commit
4cdee154cf
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/command/reportTips.php

+ 4 - 1
app/command/reportTips.php

@@ -22,6 +22,9 @@ class reportTips extends Command
     protected function execute(Input $input, Output $output)
     {
         // 指令输出
+        $sttime = Cache::get("repotTips");
+        if($sttime==1) return '';
+        Cache::set("repotTips",1,1800);
         $supplier = ["QS2203150147015222","QS2206011447553544","QS2203150147013805"];
         $this->GetData($supplier);
         $output->writeln('reporttips');
@@ -73,6 +76,6 @@ class reportTips extends Command
 		$sort = array_column($data,"thrate");
         array_multisort($sort,SORT_DESC,$data);
         array_unshift($data,$temp);
-        Cache::store("redis")->set("statContent",$data);
+        Cache::set("statContent",$data);
 	}
 }