no message

This commit is contained in:
hellcat 2025-07-10 17:35:05 +08:00
parent fd1fb2d476
commit 9966bd29c4
3 changed files with 14 additions and 8 deletions

View File

@ -34,7 +34,7 @@ final class HookController
public function cmd()
{
Http::response(200, 'ok');
// Http::response(200, 'ok');
try {
$oTGHttp = new TGHttp();

View File

@ -15,6 +15,11 @@ class Base {
$this->oTGHttp = new TGHttp();
}
public function toJson($sMsg)
{
return json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
}
// protected function cmdGood($sCmd) {
//
// $sCmdNew = "";

View File

@ -114,7 +114,7 @@ class Node extends Base
} else {
$aNodeListNew = [];
foreach ($aNodeList as $row) {
foreach ($aNodeList as &$row) {
$row['custom_config'] = json_decode($row['custom_config']);
$row['dynamic_rate_config'] = json_decode($row['dynamic_rate_config']);
@ -128,14 +128,15 @@ class Node extends Base
unset($row['is_dynamic_rate']);
unset($row['password']);
$sMsg = json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
$this->oTGHttp->sendToTG($sMsg);
// $sMsg = json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
//
// $this->oTGHttp->sendToTG($sMsg);
//
}
$sMsg = $this->toJson($aNodeList);
}
$this->oHttp::response(200, 'ok');
return $sMsg;
// $this->oHttp::response(200, 'ok');
}
public function FindSet($aParam)