no message
This commit is contained in:
parent
fd1fb2d476
commit
9966bd29c4
@ -34,7 +34,7 @@ final class HookController
|
||||
|
||||
public function cmd()
|
||||
{
|
||||
Http::response(200, 'ok');
|
||||
// Http::response(200, 'ok');
|
||||
try {
|
||||
|
||||
$oTGHttp = new TGHttp();
|
||||
|
||||
@ -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 = "";
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user