no message
This commit is contained in:
parent
dde81a3dad
commit
e8530803d1
@ -23,12 +23,12 @@ final class HookController
|
|||||||
|
|
||||||
$sUpdate = file_get_contents("php://input");
|
$sUpdate = file_get_contents("php://input");
|
||||||
$aUpdate = json_decode($sUpdate, true);
|
$aUpdate = json_decode($sUpdate, true);
|
||||||
$sText = &$aUpdate["message"]["text"] ?? "没有text";
|
$sText = $aUpdate["message"]["text"] ?? "没有text";
|
||||||
if (!str_starts_with($sText, '/')) {
|
if (!str_starts_with($sText, '/')) {
|
||||||
// $this->sCustomCmd = "article";
|
// $this->sCustomCmd = "article";
|
||||||
// $this->sCustomFunc = "cache";
|
// $this->sCustomFunc = "cache";
|
||||||
// $this->aCustomOption[1] = "ffq";
|
// $this->aCustomOption[1] = "ffq";
|
||||||
$this->sCustomText = "/article#cacheAdd__ffq_tg_a"." ".$sText;
|
$this->sCustomText = "/article#cacheAdd__ffq_tg_a"." ".$sUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->cmd();
|
$this->cmd();
|
||||||
@ -75,7 +75,7 @@ final class HookController
|
|||||||
if ($this->sCustomText) {
|
if ($this->sCustomText) {
|
||||||
$sText = $this->sCustomText;
|
$sText = $this->sCustomText;
|
||||||
} else {
|
} else {
|
||||||
$sText = &$aUpdate["message"]["text"] ?? "没有text";
|
$sText = $aUpdate["message"]["text"] ?? "没有text";
|
||||||
}
|
}
|
||||||
|
|
||||||
// hook优先
|
// hook优先
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user