main
周文涛 2 years ago
parent b62a92b7cb
commit 41299f7244

@ -116,7 +116,7 @@ public class IotUtils {
* @return 1-,0- * @return 1-,0-
*/ */
public static String getCelueStatus(String celueId){ public static String getCelueStatus(String celueId){
String str="{\"serial\":\""+serial+"\",\"productId\":\"\",\"methodName\":\"celueStatusQuery\",\"inputData\":{\"devid\":\""+serial+"\",\"celueid\":\""+celueId+"\"}}"; String str=String.format("{\"serial\":\"%serial\",\"productId\":\"\",\"methodName\":\"celueStatusQuery\",\"inputData\":{\"devid\":\"%serial\",\"celueid\":\"%celueId\"}}",serial,serial,celueId);
JSONObject requestBody = JSONObject.parseObject(str); JSONObject requestBody = JSONObject.parseObject(str);
JSONObject responseBody = IotUtils.getApi(IotApiEnum.getPathByText("查询方法历史数据"), requestBody); JSONObject responseBody = IotUtils.getApi(IotApiEnum.getPathByText("查询方法历史数据"), requestBody);
JSONObject data = responseBody.getJSONObject("data"); JSONObject data = responseBody.getJSONObject("data");

Loading…
Cancel
Save