From effb44a7b6de656020c0c0e0d0a1b13624962626 Mon Sep 17 00:00:00 2001 From: hellcat Date: Wed, 15 Apr 2026 19:40:38 +0800 Subject: [PATCH] no message --- src/Services/Tg/Hook/Dog.php | 2 -- src/Services/Tg/Hook/Mod/Node.php | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Services/Tg/Hook/Dog.php b/src/Services/Tg/Hook/Dog.php index 7a2c4f5b1..62dbecf1b 100644 --- a/src/Services/Tg/Hook/Dog.php +++ b/src/Services/Tg/Hook/Dog.php @@ -1025,9 +1025,7 @@ class Dog extends Mod\Base { } } else if ($sValueHou == "dayToDate") { - $sValueQian = date("Y-m-d H:i:s", strtotime("+{$sValueQian} days")); - } else if ($sValueHou == "dateNow") { $sValueQian = date("Y-m-d"); } else if ($sValueHou == "dateTimeNow") { diff --git a/src/Services/Tg/Hook/Mod/Node.php b/src/Services/Tg/Hook/Mod/Node.php index 05dcc17c2..c2df4fe0c 100644 --- a/src/Services/Tg/Hook/Mod/Node.php +++ b/src/Services/Tg/Hook/Mod/Node.php @@ -19,10 +19,14 @@ class Node extends Base { // $this->oDog->_setStrField(["content"]); // 可选,指定长文本字段 $this->oDog->_setJsonField(["custom_config", "dynamic_rate_config"]); $this->oDog->_setHideField(["gfw_block", "dynamic_rate_type", "dynamic_rate_config", "password", "online_user_date_last"]); + $this->oDog->_setInFormat([ + "node_bandwidth_limit" => "gb", + "node_bandwidth" => "gb" + ]); $this->oDog->_setOutFormat([ "node_heartbeat" => "date", "node_bandwidth_limit" => "gb", - "node_bandwidth" => "node_bandwidth" + "node_bandwidth" => "gb" ]); }