|
|
@@ -1,5 +1,6 @@
|
|
|
package com.coffee.aliyun.sdk;
|
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.aliyuncs.DefaultAcsClient;
|
|
|
import com.aliyuncs.exceptions.ClientException;
|
|
|
@@ -170,9 +171,10 @@ public class AliyunIotSdk {
|
|
|
request.setPageSize(pageSize);
|
|
|
request.setCurrentPage(currentPage);
|
|
|
request.setProductKey(productKey);
|
|
|
+ log.debug("阿里云拉取请求 : productKey:【{}】",productKey);
|
|
|
try {
|
|
|
QueryDeviceResponse response = client.getAcsResponse(request);
|
|
|
- System.out.println(response.getSuccess());
|
|
|
+ log.debug("阿里云响应:code:【{}】,data:【{}】",response.getCode(), JSONUtil.toJsonStr(response.getData()));
|
|
|
// 获取失败直接跳出循环
|
|
|
if (!response.getSuccess()){
|
|
|
break;
|