no message

This commit is contained in:
hellcat 2025-04-05 22:36:50 +08:00
parent 96829a3bc3
commit ba2fcb77fb

View File

@ -683,7 +683,15 @@ final class HookController
// $sMsg = ''; // $sMsg = '';
// foreach ($aNodeList as $row) { $aNodeListNew = [];
foreach ($aNodeList as $row) {
$row['custom_config'] = json_decode($row['custom_config']);
$row['dynamic_rate_config'] = json_decode($row['dynamic_rate_config']);
$row['node_bandwidth_limit'] = Tools::flowToGB($row['custom_config']);
$row['node_bandwidth'] = Tools::flowToGB($row['node_bandwidth']);
$row['node_heartbeat'] = date('Y-m-d H:i:s', $row['custom_config']);
// $sMsg .= "\n\n"; // $sMsg .= "\n\n";
// $sMsg .= "id".$row['id']."。\n"; // $sMsg .= "id".$row['id']."。\n";
// $sMsg .= "name".$row['name']."。\n"; // $sMsg .= "name".$row['name']."。\n";
@ -700,10 +708,10 @@ final class HookController
// if ($row['memo']) { // if ($row['memo']) {
// $sMsg .= "备注:".$row['memo']."。\n"; // $sMsg .= "备注:".$row['memo']."。\n";
// } // }
//
// } }
$sMsg = json_encode($aNodeList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); $sMsg = json_encode($aNodeListNew, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
} }
$this->sendMessage($sMsg); $this->sendMessage($sMsg);