no message

This commit is contained in:
hellcat 2025-11-14 19:02:10 +08:00
parent dde81a3dad
commit e8530803d1

View File

@ -23,12 +23,12 @@ final class HookController
$sUpdate = file_get_contents("php://input");
$aUpdate = json_decode($sUpdate, true);
$sText = &$aUpdate["message"]["text"] ?? "没有text";
$sText = $aUpdate["message"]["text"] ?? "没有text";
if (!str_starts_with($sText, '/')) {
// $this->sCustomCmd = "article";
// $this->sCustomFunc = "cache";
// $this->aCustomOption[1] = "ffq";
$this->sCustomText = "/article#cacheAdd__ffq_tg_a"." ".$sText;
$this->sCustomText = "/article#cacheAdd__ffq_tg_a"." ".$sUpdate;
}
$this->cmd();
@ -75,7 +75,7 @@ final class HookController
if ($this->sCustomText) {
$sText = $this->sCustomText;
} else {
$sText = &$aUpdate["message"]["text"] ?? "没有text";
$sText = $aUpdate["message"]["text"] ?? "没有text";
}
// hook优先