Browse Source

减少返回信息

yaobo 7 years ago
parent
commit
471ebeb68e
1 changed files with 12 additions and 0 deletions
  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);
         }