no message
This commit is contained in:
1 parent
51adbc0e62
commit
4cb5f0c052
2 files changed
+9
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user