diff --git a/FrontendWebApi/ApiControllers/HydroMeterController.cs b/FrontendWebApi/ApiControllers/HydroMeterController.cs index d6d2f2a..6782602 100644 --- a/FrontendWebApi/ApiControllers/HydroMeterController.cs +++ b/FrontendWebApi/ApiControllers/HydroMeterController.cs @@ -31,7 +31,12 @@ namespace FrontendWebApi.ApiControllers [Route("api/MeterList")] public async Task>>> MeterList([FromBody] HydroMeterInput input) { - ApiResult> apiResult = new ApiResult>(); + ApiResult> apiResult = new ApiResult>(jwt_str); + if (!jwtlife) + { + apiResult.Code = "5000"; + return BadRequest(apiResult); + } string tableType = "day week month year"; if (input.building_tag == null) { @@ -109,7 +114,13 @@ namespace FrontendWebApi.ApiControllers [Route("api/WaterList")] public async Task>>> WaterList([FromBody] HydroMeterInput input) { - ApiResult> apiResult = new ApiResult>(); + ApiResult> apiResult = new ApiResult>(jwt_str); + if (!jwtlife) + { + apiResult.Code = "5000"; + return BadRequest(apiResult); + } + string tableType = "day week month year"; if (input.building_tag == null) {