From 4d159e9b3b30f0a4f1bf94049f5914b96e4620ae Mon Sep 17 00:00:00 2001 From: zhouwentao <1577701412@qq.com> Date: Fri, 15 Sep 2023 11:32:52 +0800 Subject: [PATCH] updates --- src/main/java/com/example/zxweb/utils/IotUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/zxweb/utils/IotUtils.java b/src/main/java/com/example/zxweb/utils/IotUtils.java index 63ecdd5..4aae775 100644 --- a/src/main/java/com/example/zxweb/utils/IotUtils.java +++ b/src/main/java/com/example/zxweb/utils/IotUtils.java @@ -116,7 +116,7 @@ public class IotUtils { * @return 1-运行中,0-停止中 */ public static String getCelueStatus(String celueId){ - String str=String.format("{\"serial\":\"%serial\",\"productId\":\"\",\"methodName\":\"celueStatusQuery\",\"inputData\":{\"devid\":\"%serial\",\"celueid\":\"%celueId\"}}",serial,serial,celueId); + String str=String.format("{\"serial\":\"%s\",\"productId\":\"\",\"methodName\":\"celueStatusQuery\",\"inputData\":{\"devid\":\"%s\",\"celueid\":\"%s\"}}",serial,serial,celueId); JSONObject requestBody = JSONObject.parseObject(str); JSONObject responseBody = IotUtils.getApi(IotApiEnum.getPathByText("查询方法历史数据"), requestBody); JSONObject data = responseBody.getJSONObject("data");