no message

This commit is contained in:
hellcat 2025-11-14 15:19:28 +08:00
parent b9b42d03d0
commit d25c90a8fb

View File

@ -72,9 +72,10 @@ final class ArticleSchema
if ($aCmd["cmd"] == "new") {
$oArticleFlow = ServiceArticleSchema::start($oArticleSchema->code, $sSiteCode)->build();
if ($oArticleFlow->isFail()) {
$sMsg = " - 文章build失败".json_encode($oArticleFlow->getResult());
TeleSlave::warn()->send($sMsg);
echo $sMsg;
TeleSlave::warn()->send([
"msg" => "文章build失败",
"result"=> $oArticleFlow->getResult()
]);
continue;
}
$aCmd["article"] = $oArticleFlow->getDataA();
@ -87,16 +88,20 @@ final class ArticleSchema
$bHttpIsDone = $aHttpResult["isDone"] ?? false;
if (!$bHttpIsDone) {
$sMsg = "slave那边同步失败";
TeleSlave::warn()->send($sMsg);
TeleSlave::warn()->send([
"msg" => "slave那边同步失败",
"result" => $aHttpResult,
]);
continue;
}
$oCmdFLow = ServiceArticleCmd::startWithO($oArticleSchema)->moveToLog($sCmdKey);
if ($oCmdFLow->isFail()) {
$sMsg = "movetolog失败";
TeleSlave::warn()->send($sMsg);
TeleSlave::warn()->send([
"msg" => "movetolog失败",
"result" => $oCmdFLow->getResult(),
]);
continue;
}