no message

This commit is contained in:
hellcat 2026-03-19 20:29:02 +08:00
parent 8f6d466fea
commit 3416aee1f2

View File

@ -35,7 +35,6 @@ public function receive(Request $oRequest)
$aArticle = $oRequest->input("_raw"); $aArticle = $oRequest->input("_raw");
$sTitle = $aArticle["name"] ?? ""; $sTitle = $aArticle["name"] ?? "";
$sSchema = $aArticle["schema"] ?? ""; $sSchema = $aArticle["schema"] ?? "";
$sThumb = $aArticle["thumb"] ?? "";
$sSlug = "m".$aArticle["id"]; $sSlug = "m".$aArticle["id"];
$sOpt = $aArticle["opt"] ?? "[]"; $sOpt = $aArticle["opt"] ?? "[]";
@ -82,12 +81,12 @@ public function receive(Request $oRequest)
(new TagService())->syncArticleTagsByName($oArticle, $aOptTag); (new TagService())->syncArticleTagsByName($oArticle, $aOptTag);
$aArticle = $oArticle->toArray(); // $aArticle = $oArticle->toArray();
unset($aArticle["sContent"]); // unset($aArticle["sContent"]);
unset($aArticle["sTitleSub"]); // unset($aArticle["sTitleSub"]);
$jArticle = json_encode($aArticle, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); // $jArticle = json_encode($aArticle, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
$sMsg = "文章put成功~\n\n{$jArticle}"; $sMsg = "文章put成功{$oArticle->sSlug}";
TeleSlave::notify()->send($sMsg); TeleSlave::notify()->send($sMsg);
return [ return [