商家寄件下单
查看技术文档 重置为默认值
请求参数
请求数据
public void testBorderOfficial() throws Exception { PrintReq printReq = new PrintReq(); BOrderReq bOrderReq = new BOrderReq(); bOrderReq.setKuaidicom(CompanyConstant.JD); bOrderReq.setSendManName("张三"); bOrderReq.setSendManMobile("12345678910"); bOrderReq.setSendManPrintAddr("西藏日喀则市定日县珠穆朗玛峰"); bOrderReq.setRecManName("李四"); bOrderReq.setRecManMobile("12345678910"); bOrderReq.setRecManPrintAddr("西藏日喀则市定日县珠穆朗玛峰"); bOrderReq.setCallBackUrl("http://www.baidu.com"); bOrderReq.setWeight("1"); String t = String.valueOf(System.currentTimeMillis()); String param = new Gson().toJson(bOrderReq); printReq.setKey(key); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setT(t); printReq.setParam(param); printReq.setMethod(ApiInfoConstant.B_ORDER_OFFICIAL_ORDER_METHOD); System.out.println(printReq); IBaseClient bOrder = new BOrderOfficial(); System.out.println(bOrder.execute(printReq)); }