同城配送取消下单
查看技术文档 重置为默认值
请求参数
请求数据
public void testCancel() throws Exception { PrintReq printReq = new PrintReq(); CancelReq cancelReq = new CancelReq(); cancelReq.setTaskId("5EB5351750A742CB9D1C6EB46C98963E"); cancelReq.setOrderId("1000013"); cancelReq.setCancelMsg("测试单取消"); String t = String.valueOf(System.currentTimeMillis()); String param = new Gson().toJson(cancelReq); printReq.setKey(key); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setT(t); printReq.setParam(param); printReq.setMethod(ApiInfoConstant.SAME_CITY_CANCEL_METHOD); IBaseClient sameCityOrder = new SameCityOrder(); System.out.println(sameCityOrder.execute(printReq)); }