no message
This commit is contained in:
parent
4c5936f7d5
commit
a2a8c3b717
@ -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, '内部服务器错误');
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 复制节点
|
// 复制节点
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user