no message

This commit is contained in:
hellcat 2025-11-14 15:22:31 +08:00
parent d25c90a8fb
commit 821f288bbd

View File

@ -72,10 +72,12 @@ 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失败";
TeleSlave::warn()->send([ TeleSlave::warn()->send([
"msg" => "文章build失败", "msg" => $sMsg,
"result"=> $oArticleFlow->getResult() "result"=> $oArticleFlow->getResult()
]); ]);
echo $sMsg;
continue; continue;
} }
$aCmd["article"] = $oArticleFlow->getDataA(); $aCmd["article"] = $oArticleFlow->getDataA();
@ -88,20 +90,24 @@ final class ArticleSchema
$bHttpIsDone = $aHttpResult["isDone"] ?? false; $bHttpIsDone = $aHttpResult["isDone"] ?? false;
if (!$bHttpIsDone) { if (!$bHttpIsDone) {
$sMsg = "slave那边同步失败";
TeleSlave::warn()->send([ TeleSlave::warn()->send([
"msg" => "slave那边同步失败", "msg" => $sMsg,
"result" => $aHttpResult, "result" => $sHttpResult,
]); ]);
echo $sMsg;
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([
"msg" => "movetolog失败", "msg" => $sMsg,
"result" => $oCmdFLow->getResult(), "result" => $oCmdFLow->getResult(),
]); ]);
echo $sMsg;
continue; continue;
} }