同城配送下单

请求参数

param

shunfeng - 顺丰同城

收件人信息

寄件人信息

附加信息

KG
0 : 立即单

goods

请求数据
public void testOrder() throws Exception { PrintReq printReq = new PrintReq(); OrderReq orderReq = new OrderReq(); orderReq.setCom(CompanyConstant.KFW); //替换成贵司在闪送的店铺id orderReq.setStoreId("123456"); orderReq.setSendManName("张三"); orderReq.setSendManMobile("12345678910"); orderReq.setSendManPrintAddr("西藏日喀则市定日县珠穆朗玛峰"); orderReq.setRecManName("李四"); orderReq.setRecManMobile("12345678910"); orderReq.setRecManPrintAddr("西藏日喀则市定日县珠穆朗玛峰"); orderReq.setPrice(100); orderReq.setOrderSourceType("饿了么"); orderReq.setOrderSourceType("ele11111111"); orderReq.setWeight(1.5); orderReq.setPartnerId("1999328601"); orderReq.setPartnerKey("806cdf87a2977e99e360a1b8de9dfb000326375d"); orderReq.setRemark("测试订单待会取消"); orderReq.setServiceType("火锅"); orderReq.setCallbackUrl("http://www.baidu.com"); orderReq.setOrderType(0); String t = String.valueOf(System.currentTimeMillis()); String param = new Gson().toJson(orderReq); printReq.setKey(key); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setT(t); printReq.setParam(param); printReq.setMethod(ApiInfoConstant.SAME_CITY_ORDER_METHOD); IBaseClient sameCityOrder = new SameCityOrder(); System.out.println(sameCityOrder.execute(printReq)); }