Ken 5 일 전
부모
커밋
60bab52c38
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      app/Http/Controllers/api/Home.php

+ 11 - 0
app/Http/Controllers/api/Home.php

@@ -81,6 +81,17 @@ class Home extends Controller
 
     public function test()
     {
+
+        echo "开始暂停:";
+        echo time();
+        echo "\n";
+        sleep(3); // 暂停 3 秒
+        echo "暂停结束";
+        echo time();
+        echo "\n";
+        exit();
+
+
         $telegram = new Api(config('services.telegram.token'));
 //        $chatId = '@GGGBBBB1';
 //        $chat = $telegram->getChat(['chat_id' => $chatId]);