no message

This commit is contained in:
hellcat 2026-09-11 16:33:27 +08:00
parent 90de190d12
commit e2395aef30
2 changed files with 4 additions and 4 deletions

View File

@ -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());
}

View File

@ -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 配置缺失。');