提交订单获取任务
查看技术文档 重置为默认值
请求参数
请求数据
public void testCommitTask() throws Exception { CommitTaskReq commitTaskReq = new CommitTaskReq(); commitTaskReq.setShopType(ThirdPlatformConstant.TAO_BAO); commitTaskReq.setShopId("21231"); commitTaskReq.setOrderStatus(OrderStatus.UNSHIP.toString()); commitTaskReq.setUpdateAtMin("2022-02-17 16:00:00"); commitTaskReq.setUpdateAtMax("2022-02-17 16:30:00"); commitTaskReq.setCallbackUrl("http://www.baidu.com"); commitTaskReq.setSalt("12345678"); String param = new Gson().toJson(commitTaskReq); PrintReq printReq = new PrintReq(); printReq.setKey(key); printReq.setSign(SignUtils.sign(param + key + secret)); printReq.setParam(param); IBaseClient baseClient = new ThirdPlatformOrderCommitTask(); HttpResult result = baseClient.execute(printReq); System.out.println(result); if (result!=null && result.getStatus() == HttpStatus.SC_OK && result.getBody()!= null){ ThirdPlatformBaseResp<CommitTaskResp> commitTaskResp = new Gson().fromJson(result.getBody(),new TypeToken<ThirdPlatformBaseResp<CommitTaskResp>>(){}.getType()); } }