|
@@ -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');
|