mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-10 23:47:44 +08:00
增加订单查询接口
This commit is contained in:
@@ -307,7 +307,15 @@ public class FuiouPayService extends BasePayService {
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> query(String tradeNo, String outTradeNo) {
|
||||
return null;
|
||||
|
||||
LinkedHashMap<String, Object> params = new LinkedHashMap<>();
|
||||
params.put("mchnt_cd", payConfigStorage.getPid());
|
||||
params.put("order_id", outTradeNo);
|
||||
params.put("md5", createSign(SignUtils.parameters2MD5Str(params, "|"), payConfigStorage.getInputCharset()));
|
||||
JSONObject resultJson = getHttpRequestTemplate().postForObject(getReqUrl() + URL_FuiouSmpAQueryGate + "?" + UriVariables.getMapToParameters(params), null, JSONObject.class);
|
||||
|
||||
|
||||
return resultJson;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -320,7 +328,8 @@ public class FuiouPayService extends BasePayService {
|
||||
*/
|
||||
@Override
|
||||
public <T> T query (String tradeNo, String outTradeNo, Callback<T> callback) {
|
||||
return null;
|
||||
|
||||
return callback.perform(query(tradeNo, outTradeNo));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user