|
|
@ -72,7 +72,7 @@ public class ChargeController : ControllerBase
|
|
|
|
[Route("SendPowerRegulation/{code}/{power}")]
|
|
|
|
[Route("SendPowerRegulation/{code}/{power}")]
|
|
|
|
public Result<bool> SendPowerRegulation(string code, float power)
|
|
|
|
public Result<bool> SendPowerRegulation(string code, float power)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (power < 1 || power > 360)
|
|
|
|
if (power <=0 || power > 280)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Result<bool>.Fail("功率值范围1到360");
|
|
|
|
return Result<bool>.Fail("功率值范围1到360");
|
|
|
|
}
|
|
|
|
}
|
|
|
|