商家寄件下单

请求参数

param

shentong - 申通
KG
N : 不需要(默认)
0 : 不开启(默认)
0 : 关闭(默认)
0 : 不返回面单内容
请求数据
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)); }