zxiansheng 3 жил өмнө
parent
commit
487ae24496

+ 0 - 5
aaa.txt

@@ -1,5 +0,0 @@
-array (
-  'time' => '2022-04-13 10:26:59',
-)array (
-  'time' => '2022-04-13 10:27:04',
-)

+ 3 - 3
common/components/SwooleAsyncTimer.php

@@ -47,9 +47,9 @@ class SwooleAsyncTimer extends SwooleAsyncTimerComponent implements SocketInterf
      */
     public function timerCallback($timerId, $server){
         // 自动封期
-        file_put_contents('aaa.txt', var_export([
-            'time' =>  date('Y-m-d H:i:s')
-        ],true),FILE_APPEND);
+        // file_put_contents('aaa.txt', var_export([
+        //     'time' =>  date('Y-m-d H:i:s')
+        // ],true),FILE_APPEND);
         AutoClosePeriod::instance()->autoClose();
         // 自动执行任务队列中的任务
         Queue::instance()->consumeTask();