diff --git a/app/Http/Controllers/Api/v1/ArticlesController.php b/app/Http/Controllers/Api/v1/ArticlesController.php index 5814d03c..6eb1d456 100755 --- a/app/Http/Controllers/Api/v1/ArticlesController.php +++ b/app/Http/Controllers/Api/v1/ArticlesController.php @@ -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 [