no message
This commit is contained in:
parent
fd1fb2d476
commit
9966bd29c4
@ -34,7 +34,7 @@ final class HookController
|
|||||||
|
|
||||||
public function cmd()
|
public function cmd()
|
||||||
{
|
{
|
||||||
Http::response(200, 'ok');
|
// Http::response(200, 'ok');
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$oTGHttp = new TGHttp();
|
$oTGHttp = new TGHttp();
|
||||||
|
|||||||
@ -15,6 +15,11 @@ class Base {
|
|||||||
$this->oTGHttp = new TGHttp();
|
$this->oTGHttp = new TGHttp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function toJson($sMsg)
|
||||||
|
{
|
||||||
|
return json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
||||||
|
}
|
||||||
|
|
||||||
// protected function cmdGood($sCmd) {
|
// protected function cmdGood($sCmd) {
|
||||||
//
|
//
|
||||||
// $sCmdNew = "";
|
// $sCmdNew = "";
|
||||||
|
|||||||
@ -114,7 +114,7 @@ class Node extends Base
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
$aNodeListNew = [];
|
$aNodeListNew = [];
|
||||||
foreach ($aNodeList as $row) {
|
foreach ($aNodeList as &$row) {
|
||||||
|
|
||||||
$row['custom_config'] = json_decode($row['custom_config']);
|
$row['custom_config'] = json_decode($row['custom_config']);
|
||||||
$row['dynamic_rate_config'] = json_decode($row['dynamic_rate_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['is_dynamic_rate']);
|
||||||
unset($row['password']);
|
unset($row['password']);
|
||||||
|
|
||||||
$sMsg = json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
// $sMsg = json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
||||||
|
//
|
||||||
$this->oTGHttp->sendToTG($sMsg);
|
// $this->oTGHttp->sendToTG($sMsg);
|
||||||
|
//
|
||||||
}
|
}
|
||||||
|
$sMsg = $this->toJson($aNodeList);
|
||||||
}
|
}
|
||||||
$this->oHttp::response(200, 'ok');
|
return $sMsg;
|
||||||
|
// $this->oHttp::response(200, 'ok');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function FindSet($aParam)
|
public function FindSet($aParam)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user