no message

This commit is contained in:
hellcat committed 2025-03-24 20:34:37 +08:00
1 parent cf9f9113b4
commit 11b2bdb036
6 files changed
+27 -2

No files matched your search

+7 -1
View File
@@ -65,6 +65,8 @@ final class HookController
if ($sText === "/break") {
$oTgStep->clearByFromId($aData["fromId"]);
$this->sendMessage("ok");
http_response_code(200);exit;
@@ -72,6 +74,7 @@ final class HookController
if (strpos($sText, '/reply') === 0) {
// 先清除一遍,只进行一个进程
$oTgStep->clearByFromId($aData["fromId"]);
$iTicketId = str_replace('/reply', '', $sText);
@@ -105,6 +108,9 @@ final class HookController
$r = @json_decode($oHttp->send(), true);
// 不论失败成功都清除step
$oTgStep->clearByFromId($aUpdate["message"]["from"]["id"]);
if ($r["ret"] == 1) {
$sMessage = "成功";
} else {
@@ -121,7 +127,7 @@ final class HookController
}
Http::response(200, 'ok');
Http::response(200, '无');
}