mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-04 07:36:30 +08:00
移除过时方法,工具类迁移
This commit is contained in:
@@ -22,6 +22,7 @@ import com.egzosn.pay.common.http.HttpConfigStorage;
|
||||
import com.egzosn.pay.common.http.UriVariables;
|
||||
import com.egzosn.pay.common.util.DateUtils;
|
||||
import com.egzosn.pay.common.util.Util;
|
||||
import com.egzosn.pay.common.util.sign.SignTextUtils;
|
||||
import com.egzosn.pay.common.util.sign.SignUtils;
|
||||
import com.egzosn.pay.common.util.str.StringUtils;
|
||||
import com.egzosn.pay.fuiou.bean.FuiouRefundResult;
|
||||
@@ -141,7 +142,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
*/
|
||||
public boolean signVerify(Map<String, Object> params, String responseSign) {
|
||||
|
||||
String sign = createSign(SignUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset());
|
||||
String sign = createSign(SignTextUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset());
|
||||
|
||||
return responseSign.equals(sign);
|
||||
}
|
||||
@@ -156,7 +157,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
LinkedHashMap<String, Object> params = new LinkedHashMap<String, Object>(3);
|
||||
params.put("mchnt_cd", payConfigStorage.getPid());
|
||||
params.put("order_id", orderId);
|
||||
params.put("md5", createSign(SignUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset()));
|
||||
params.put("md5", createSign(SignTextUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset()));
|
||||
JSONObject resultJson = getHttpRequestTemplate().postForObject(getReqUrl() + URL_FuiouSmpAQueryGate + "?" + UriVariables.getMapToParameters(params), null, JSONObject.class);
|
||||
if (null == resultJson) {
|
||||
return false;
|
||||
@@ -178,7 +179,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
}
|
||||
|
||||
Map<String, Object> parameters = getOrderInfo(order);
|
||||
String sign = createSign(SignUtils.parameters2Md5Str(parameters, "|"), payConfigStorage.getInputCharset());
|
||||
String sign = createSign(SignTextUtils.parameters2Md5Str(parameters, "|"), payConfigStorage.getInputCharset());
|
||||
parameters.put("md5", sign);
|
||||
return parameters;
|
||||
}
|
||||
@@ -381,7 +382,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
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()));
|
||||
params.put("md5", createSign(SignTextUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset()));
|
||||
JSONObject resultJson = getHttpRequestTemplate().postForObject(getReqUrl() + URL_FuiouSmpAQueryGate + "?" + UriVariables.getMapToParameters(params), null, JSONObject.class);
|
||||
return resultJson;
|
||||
}
|
||||
@@ -420,7 +421,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
//备注
|
||||
params.put("rem", "");
|
||||
params.putAll(refundOrder.getAttrs());
|
||||
params.put("md5", createSign(SignUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset()));
|
||||
params.put("md5", createSign(SignTextUtils.parameters2Md5Str(params, "|"), payConfigStorage.getInputCharset()));
|
||||
JSONObject resultJson = getHttpRequestTemplate().postForObject(getReqUrl() + URL_FuiouSmpRefundGate, params, JSONObject.class);
|
||||
return FuiouRefundResult.create(resultJson);
|
||||
}
|
||||
@@ -438,19 +439,6 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 下载对账单
|
||||
*
|
||||
* @param billDate 账单时间:日账单格式为yyyy-MM-dd,月账单格式为yyyy-MM。
|
||||
* @param billType 账单类型,商户通过接口或商户经开放平台授权后其所属服务商通过接口可以获取以下账单类型:trade、signcustomer;trade指商户基于支付宝交易收单的业务账单;signcustomer是指基于商户支付宝余额收入及支出等资金变动的帐务账单;
|
||||
* @return 空
|
||||
*/
|
||||
@Deprecated
|
||||
@Override
|
||||
public Map<String, Object> downloadbill(Date billDate, String billType) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载对账单
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user