no message
This commit is contained in:
parent
ea9717c009
commit
ca1be77c57
@ -55,9 +55,10 @@ final class HookController
|
||||
$sText = $aUpdate["message"]["text"];
|
||||
|
||||
// 先检查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"]);
|
||||
|
||||
@ -95,15 +96,16 @@ final class HookController
|
||||
}
|
||||
|
||||
// 命令
|
||||
if ($sText === "/test") {
|
||||
|
||||
$serverTime = date("Y-m-d H:i:s");
|
||||
|
||||
$this->sendMessage("服务器时间: " . $serverTime);
|
||||
|
||||
http_response_code(200);exit;
|
||||
}
|
||||
// if ($sText === "/test") {
|
||||
//
|
||||
// $serverTime = date("Y-m-d H:i:s");
|
||||
//
|
||||
// $this->sendMessage("服务器时间: " . $serverTime);
|
||||
//
|
||||
// http_response_code(200);exit;
|
||||
// }
|
||||
|
||||
|
||||
if ($sText === "/break") {
|
||||
|
||||
$oTgStep->clearByFromId($aData["fromId"]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user