wugg 2 年之前
父节点
当前提交
c2f549762c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/command/good.php

+ 3 - 3
app/command/good.php

@@ -23,7 +23,7 @@ class good extends Command
     protected function execute(Input $input, Output $output)
     {
         // 指令输出
-	    $this->date=date("Y-m-d 00:00:00",time());
+	    $this->date=date("Y-m-d H:i:s",time()-3600);
 	    $goodset =Cache::store("redis")->get("goodSet");
 	    if($goodset ==1) return;
 	    Cache::store("redis")->set("goodSet",1,1800);
@@ -31,9 +31,9 @@ class good extends Command
 	    try{
 		    $this->goodBasic();
 		    $this->goodZx();
-		    Cache::store("redis")->set("goodSet",0);
+//		    Cache::store("redis")->set("goodSet",0);
 	    }catch (\Exception $e){
-		    Cache::store("redis")->set("goodSet",0);
+//		    Cache::store("redis")->set("goodSet",0);
 		    $output->writeln("【".date("Y-m-d H:i:s")."】".$e->getMessage());
 	    }