From 20724296fc6b84ffe591d20292982168fd4a251a Mon Sep 17 00:00:00 2001 From: lxw Date: Sat, 15 Jun 2024 19:31:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E7=8E=87=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/Controllers/ChargeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebStarter/Controllers/ChargeController.cs b/WebStarter/Controllers/ChargeController.cs index ef2c22a..f8f63fc 100644 --- a/WebStarter/Controllers/ChargeController.cs +++ b/WebStarter/Controllers/ChargeController.cs @@ -72,7 +72,7 @@ public class ChargeController : ControllerBase [Route("SendPowerRegulation/{code}/{power}")] public Result SendPowerRegulation(string code, float power) { - if (power < 1 || power > 360) + if (power <=0 || power > 280) { return Result.Fail("功率值范围1到360"); }