瀏覽代碼

减少返回信息

yaobo 7 年之前
父節點
當前提交
471ebeb68e
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/main/java/cn/efunbox/audio/controller/DeviceController.java

+ 12 - 0
src/main/java/cn/efunbox/audio/controller/DeviceController.java

@@ -117,6 +117,12 @@ public class DeviceController {
             HttpUtil.responseApiCode(request, response, ApiCode.INVALID_TOKEN);
             return;
         }
+        device.setIaas_eid("");
+        device.setIaas_name("");
+        device.setIaas_uid("");
+        device.setIaas_token("");
+        device.setIaas_pwd("");
+        device.setTokenOld("");
         HttpUtil.responseOkData(request, response, device);
         return;
     }
@@ -163,6 +169,12 @@ public class DeviceController {
             device.setIaas_expiration(new Timestamp(Long.valueOf(mapRes.get("expiration").toString())));
             device = deviceService.Update(device);
 
+            device.setIaas_eid("");
+            device.setIaas_name("");
+            device.setIaas_uid("");
+            device.setIaas_token("");
+            device.setIaas_pwd("");
+            device.setTokenOld("");
             HttpUtil.responseOkData(request, response, device);
         }