快递预估时效

请求参数

param

debangkuaidi
请求数据
public void testDeliveryTime() throws Exception { DeliveryTimeReq deliveryTimeReq = new DeliveryTimeReq(); deliveryTimeReq.setKuaidicom("jd"); deliveryTimeReq.setFrom("广东省广州市白云区"); deliveryTimeReq.setTo("广东省深圳市南山区"); deliveryTimeReq.setOrderTime("2023-10-11 10:00:00"); deliveryTimeReq.setExpType("特惠送"); String param = new Gson().toJson(deliveryTimeReq); String t = System.currentTimeMillis() + ""; PrintReq printReq = new PrintReq(); printReq.setT(t); printReq.setKey(key); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setMethod(ApiInfoConstant.TIME); printReq.setParam(param); IBaseClient baseClient = new LabelV2(); HttpResult httpResult = baseClient.execute(printReq); if (httpResult.getStatus() == HttpStatus.SC_OK && StringUtils.isNotBlank(httpResult.getBody())){ System.out.println(new Gson().fromJson(httpResult.getBody(),new TypeToken<Result<DeliveryTimeResp>>(){}.getType())); } }