From 7f5e93d5fffaf417c5ce390abdf0d1328ece1342 Mon Sep 17 00:00:00 2001 From: hellcat Date: Wed, 30 Sep 2026 15:37:26 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/Mod/Test.php | 2 +- app/Services/TomTool/Http.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/TG/Hook/Mod/Test.php b/app/Services/TG/Hook/Mod/Test.php index 2f7d046..7baf25e 100644 --- a/app/Services/TG/Hook/Mod/Test.php +++ b/app/Services/TG/Hook/Mod/Test.php @@ -34,7 +34,7 @@ class Test extends Base { $this->oHttp->sMethod = "get"; $this->oHttp->sToUrl = env("APP_URL")."/cron"; - var_dump($this->oHttp->sToUrl);exit; + $this->oHttp->bIsJson = true; $this->oHttp->aData = [ "is_test" => true, diff --git a/app/Services/TomTool/Http.php b/app/Services/TomTool/Http.php index a4627d9..3ca2b1b 100755 --- a/app/Services/TomTool/Http.php +++ b/app/Services/TomTool/Http.php @@ -54,6 +54,7 @@ class Http break; case 'get': + var_dump($this->sToUrl . '?' . http_build_query($this->aData));exit; // 默认使用 GET 请求 curl_setopt($ch, CURLOPT_HTTPGET, true); // 设置为 GET 请求 curl_setopt($ch, CURLOPT_URL, $this->sToUrl . '?' . http_build_query($this->aData)); // 设置请求 URL