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