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