From e2395aef3060a9ad16b740fe80a9d15bcf2b1388 Mon Sep 17 00:00:00 2001 From: hellcat Date: Fri, 11 Sep 2026 16:33:27 +0800 Subject: [PATCH] no message --- app/Http/Controllers/Api/v1/ArticlesController.php | 6 +++--- app/Services/IndexNowService.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Api/v1/ArticlesController.php b/app/Http/Controllers/Api/v1/ArticlesController.php index 2ead58d0..d207062d 100755 --- a/app/Http/Controllers/Api/v1/ArticlesController.php +++ b/app/Http/Controllers/Api/v1/ArticlesController.php @@ -156,7 +156,7 @@ public function receiveShadowrocketids(Request $oRequest) ArticleThumbNum::where("author_code", $sSubKey)->where("type", "shadowrocketids")->update(["num" => $sThumbNumTrue]); - $sArticleUrl = config("app.url")."/shadowrocketids/".$sSlug; + $sArticleUrl = config("app.url")."/a/".$sSlug; $oIndexNow = new IndexNowService(); $bIndexR = $oIndexNow->pushUrls([$sArticleUrl.".html"]); @@ -230,12 +230,12 @@ public function receiveFreenode(Request $oRequest) ArticleFreenodeThumbNum::where("author_code", $sSubKey)->update(["num" => $sThumbNumTrue]); - $sArticleUrl = config("app.url")."/feenode/".$sSlug; + $sArticleUrl = config("app.url")."/a/".$sSlug; $oIndexNow = new IndexNowService(); $bIndexR = $oIndexNow->pushUrls([$sArticleUrl.".html"]); - TeleSlave::notify()->send($sArticleUrl." 发布成功 | "."indexNow推送:".$bIndexR); + TeleSlave::notify()->send($sArticleUrl." 发布成功 | "."indexNow推送:".$bIndexR); // indexR是true或false,发送到tg什么都没有? return response()->json($oFlow->done()); } diff --git a/app/Services/IndexNowService.php b/app/Services/IndexNowService.php index 2368a4fc..14031765 100644 --- a/app/Services/IndexNowService.php +++ b/app/Services/IndexNowService.php @@ -32,7 +32,7 @@ public function pushUrls(array $aUrlList): bool $sHostDomain = config('app.site_code', 'clashfreenode.com'); // TEST 时可以写死,但正式环境建议删除这一行 - $sHostDomain = 'clashfreenode.com'; +// $sHostDomain = 'clashfreenode.com'; if (empty($sIndexNowKey) || empty($sHostDomain)) { Log::error('IndexNow 配置缺失。');