|
@@ -17,12 +17,16 @@ import java.util.Date;
|
|
@Slf4j
|
|
@Slf4j
|
|
public class ApartmentUtil {
|
|
public class ApartmentUtil {
|
|
|
|
|
|
- private static final String postUrl = "http://t.server.hxjiot.com";
|
|
|
|
-
|
|
|
|
// 测试
|
|
// 测试
|
|
|
|
+ private static final String postUrl = "http://t.server.hxjiot.com";
|
|
private static final String accountName = "cfmenma";
|
|
private static final String accountName = "cfmenma";
|
|
private static final String password = MD5Util.encode("cf123456");
|
|
private static final String password = MD5Util.encode("cf123456");
|
|
|
|
|
|
|
|
+ // 正式
|
|
|
|
+// private static final String postUrl = "https://server.hxjiot.com";
|
|
|
|
+// private static final String accountName = "";
|
|
|
|
+// private static final String password = MD5Util.encode("");
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 鉴权获取token
|
|
* 鉴权获取token
|
|
*/
|
|
*/
|
|
@@ -218,7 +222,7 @@ public class ApartmentUtil {
|
|
System.out.println(token);
|
|
System.out.println(token);
|
|
// JSONObject jsonObject = getRoomListPage(0, 10, token);
|
|
// JSONObject jsonObject = getRoomListPage(0, 10, token);
|
|
// System.out.println(jsonObject.toJSONString());
|
|
// System.out.println(jsonObject.toJSONString());
|
|
-// System.out.println(getRoomDetail("CkgbdUY4u8g=", token));
|
|
|
|
|
|
+ System.out.println(getRoomDetail("CkgbdUY4u8g=", token));
|
|
// JSONObject data = sendPassword("CkgbdUY4u8g=", 1747278600L, token);
|
|
// JSONObject data = sendPassword("CkgbdUY4u8g=", 1747278600L, token);
|
|
// System.out.println(data.toJSONString());
|
|
// System.out.println(data.toJSONString());
|
|
// String password = AESUtil.decryptKey(data.getString("password"), data.getString("tokenId"));
|
|
// String password = AESUtil.decryptKey(data.getString("password"), data.getString("tokenId"));
|