no message

This commit is contained in:
hellcat 2025-03-24 21:49:37 +08:00
parent ea9717c009
commit ca1be77c57

View File

@ -55,9 +55,10 @@ final class HookController
$sText = $aUpdate["message"]["text"]; $sText = $aUpdate["message"]["text"];
// 先检查step // 先检查step
if ($oTgStep->fromIdHit($aData['fromId'])) { if (strpos($string, "/s ") === 0 && $oTgStep->fromIdHit($aData['fromId'])) {
$sText = ltrim($sText, '/'); $sText = ltrim($sText, '/s');
$sText = trim($sText);
$aTgStepFirst = $oTgStep->find($aData["fromId"]); $aTgStepFirst = $oTgStep->find($aData["fromId"]);
@ -95,15 +96,16 @@ final class HookController
} }
// 命令 // 命令
if ($sText === "/test") { // if ($sText === "/test") {
//
$serverTime = date("Y-m-d H:i:s"); // $serverTime = date("Y-m-d H:i:s");
//
$this->sendMessage("服务器时间: " . $serverTime); // $this->sendMessage("服务器时间: " . $serverTime);
//
http_response_code(200);exit; // http_response_code(200);exit;
} // }
if ($sText === "/break") { if ($sText === "/break") {
$oTgStep->clearByFromId($aData["fromId"]); $oTgStep->clearByFromId($aData["fromId"]);