no message
This commit is contained in:
parent
90de190d12
commit
e2395aef30
@ -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());
|
||||
}
|
||||
|
||||
@ -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 配置缺失。');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user