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");
$sTitle = $aArticle["name"] ?? "";
$sSchema = $aArticle["schema"] ?? "";
$sThumb = $aArticle["thumb"] ?? "";
$sSlug = "m".$aArticle["id"];
$sOpt = $aArticle["opt"] ?? "[]";
@ -82,12 +81,12 @@ public function receive(Request $oRequest)
(new TagService())->syncArticleTagsByName($oArticle, $aOptTag);
$aArticle = $oArticle->toArray();
unset($aArticle["sContent"]);
unset($aArticle["sTitleSub"]);
$jArticle = json_encode($aArticle, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
// $aArticle = $oArticle->toArray();
// unset($aArticle["sContent"]);
// unset($aArticle["sTitleSub"]);
// $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);
return [