no message

This commit is contained in:
hellcat 2025-04-07 18:35:33 +08:00
parent 51adbc0e62
commit 4cb5f0c052
2 changed files with 9 additions and 7 deletions

View File

@ -35,7 +35,7 @@ $oHttp->aData = [
'type' => 'private'
],
'date' => 1610000000,
"text" => "\/nodeCopy 11",
"text" => "\/duckOption|width_reset_day|7",
]
];

View File

@ -496,7 +496,13 @@ final class HookController
list($sCmd, $sSet) = explode(" ", $sText, 2);
list(, $sField, $sCode) = explode("|", $sCmd, 3);
@list($iWidth, $sWidthType) = explode("#", $sSet, 2);
if ($sSet) {
@list($iWidth, $sWidthType) = explode("#", $sSet, 2);
} else {
$sMsg = "没有参数";
}
if ($sWidthType == 'tb') {
$sSet = Tools::tomTbToB($iWidth);
@ -526,10 +532,6 @@ final class HookController
$sMsg = json_encode($e->getMessage());
$this->sendMessage($sMsg);
Http::response(200, 'ok');
}
$this->sendMessage($sMsg);
@ -828,7 +830,7 @@ final class HookController
if ($_ENV['is_loc'] === true) {
echo "<pre>";
echo($sText);
var_dump($sText);
} else {
$url = "https://api.telegram.org/bot$this->sApiToken/sendMessage?chat_id=$this->sApiChatId&text=" . urlencode($sText);
file_get_contents($url);