Quellcode durchsuchen

减少返回信息

yaobo vor 7 Jahren
Ursprung
Commit
471ebeb68e
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  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);
         }