商家寄件下单

请求参数

param

shentong - 申通
KG
N : 不需要(默认)
0 : 不开启(默认)
0 : 关闭(默认)
请求数据
public void testBorderOfficial() throws Exception { PrintReq printReq = new PrintReq(); BOrderReq bOrderReq = new BOrderReq(); bOrderReq.setKuaidicom(CompanyConstant.JD); bOrderReq.setSendManName("张三"); bOrderReq.setSendManMobile("13012312345"); bOrderReq.setSendManPrintAddr("深圳市南山区金蝶软件园"); bOrderReq.setRecManName("李四"); bOrderReq.setRecManMobile("13812312345"); 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)); }