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" ]); }