no message

This commit is contained in:
hellcat 2025-04-10 20:43:13 +08:00
parent 4c5936f7d5
commit a2a8c3b717

View File

@ -231,7 +231,7 @@ final class HookController
// 快捷回复工单 // 快捷回复工单
// /ry 11 你好 // /ry 11 你好
if (strpos($sText, '/ry') === 0) { if (strpos($sText, '/ry') === 0) {
try {
$sText = $this->trimText($sText, '/ry'); $sText = $this->trimText($sText, '/ry');
list($iTicketId, $sText) = explode(" ", $sText, 2); list($iTicketId, $sText) = explode(" ", $sText, 2);
@ -261,6 +261,15 @@ final class HookController
Http::response(200, 'ok'); Http::response(200, 'ok');
} catch (Exception $e) {
$sMessage = "发生错误: " . $e->getMessage();
$this->sendMessage($sMessage);
Http::response(500, '内部服务器错误');
}
} }
// 复制节点 // 复制节点