main
周文涛 2 years ago
parent 6758fc5071
commit a5b3c07c01

@ -36,6 +36,7 @@ public class LoadCelueInit implements ApplicationRunner{
String format = String.format("{\"serial\":\"%s\",\"productId\":\"\",\"methodName\":\"celueListQuery\",\"inputData\":{\"devid\":\"%s\"}}", gateway_5lqh,gateway_5lqh);
JSONObject requestBody = JSONObject.parseObject(format);
JSONObject responseBody = IotUtils.postApi(IotApiEnum.getPathByText("向设备发送方法"), requestBody);
log.info(responseBody.toJSONString());
JSONObject data = responseBody.getJSONObject("data");
if (data!=null) {
JSONObject outputData = data.getJSONObject("outputData");

@ -74,7 +74,7 @@ public class IotUtils {
}
}
}catch (Exception e){
throw new BusinessException(e);
throw new BusinessException(e.getMessage());
}
return false;
}
@ -105,7 +105,7 @@ public class IotUtils {
}
}
}catch (Exception e){
throw new BusinessException(e);
throw new BusinessException(e.getMessage());
}
return false;
}

Loading…
Cancel
Save