no message
This commit is contained in:
parent
dde81a3dad
commit
e8530803d1
@ -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优先
|
||||
|
||||
Loading…
Reference in New Issue
Block a user