|
|
@@ -90,7 +90,7 @@ public class CabinetUtil {
|
|
|
String str_sign = appid + "=" + times + "=" + appid;
|
|
|
str_sign = encrypt(str_sign);
|
|
|
|
|
|
- String result3= HttpRequest.post(hosts + "/kd/api/v2/action/box_info_list/").body(JSON.toJSONString(Map.of("device_number",cabinetCode)))
|
|
|
+ String result3= HttpRequest.post(hosts + "/kd/api/v2/action/box_info_list/").body(JSON.toJSONString(Map.of("device_number",cabinetCode,"page_size",1000)))
|
|
|
.addHeaders(Map.of("timestamp",times+"","Content-Type","application/json","appid",appid,"sign",str_sign))
|
|
|
.execute().body();
|
|
|
return result3;
|
|
|
@@ -141,7 +141,7 @@ public class CabinetUtil {
|
|
|
String str_sign = appid + "=" + times + "=" + appid;
|
|
|
str_sign = encrypt(str_sign);
|
|
|
|
|
|
- String result3= HttpRequest.post(hosts + "/kd/api/v2/action/clear_box/").body(JSON.toJSONString(Map.of("device_number",cabinetCode,"box_uid",boxUUId)))
|
|
|
+ String result3= HttpRequest.post(hosts + "/kd/api/v2/action/clear_box_open/").body(JSON.toJSONString(Map.of("device_number",cabinetCode,"box_uid",boxUUId)))
|
|
|
.addHeaders(Map.of("timestamp",times+"","Content-Type","application/json","appid",appid,"sign",str_sign))
|
|
|
.execute().body();
|
|
|
return result3;
|