|
|
|
@@ -162,6 +162,17 @@ public abstract class BaseTtPayServiceImpl implements TtPayService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void queryItemOrderInfo(String order_id) throws TtPayException{ |
|
|
|
// String url = String.format("%s/api/apps/trade/v2/query_order", this.getPayBaseUrl()); |
|
|
|
String url = String.format("%s/api/apps/trade/v2/query_item_order_info", this.getPayBaseUrl()); |
|
|
|
Map<String,Object> request = new HashMap(); |
|
|
|
// request.put("out_order_no",order_id); |
|
|
|
request.put("order_id",order_id); |
|
|
|
String response = this.postV2(url, GSON.toJson(request)); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public TtPayCpsOrderQueryV2Result queryCpsOrderV2(String orderId, String outOrderNo) throws TtPayException{ |
|
|
|
String url = String.format("%s/api/apps/trade/v2/query_cps", this.getPayBaseUrl()); |
|
|
|
TtPayOrderQueryV2Request request = new TtPayOrderQueryV2Request(); |
|
|
|
@@ -182,7 +193,7 @@ public abstract class BaseTtPayServiceImpl implements TtPayService { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean pushDelivery(TtOrderPushDeliveryRequest request) throws TtPayException{ |
|
|
|
String url = String.format("%s/api/apps/trade/v2/push_delivery", this.getPayBaseUrl()); |
|
|
|
String response = this.postV2(url, GSON.toJson(request)); |
|
|
|
|