Prechádzať zdrojové kódy

add 病号格式化

A17404李放 3 rokov pred
rodič
commit
6b18363880

+ 4 - 1
nb-common/src/main/java/com/coffee/common/config/CacheHttpServletRequestWrapper.java

@@ -73,5 +73,8 @@ public class CacheHttpServletRequestWrapper extends HttpServletRequestWrapper {
             }
         };
     }
-
+//    @Override
+//    public Collection<Part> getParts() throws IOException, ServletException {
+//        return this._getHttpServletRequest().getParts();
+//    }
 }

+ 3 - 1
nb-system/src/main/java/com/coffee/aliyun/sdk/AliyunIotSdk.java

@@ -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;