代码整理

This commit is contained in:
egan
2022-07-02 21:29:46 +08:00
parent 739c0cc03e
commit 29db0f99e2
25 changed files with 115 additions and 135 deletions

View File

@@ -81,6 +81,7 @@ public class WxCombinePayService extends WxPayService {
* @param order 支付订单集
* @return 下单结果
*/
@Override
public JSONObject unifiedOrder(PayOrder order) {
//统一下单

View File

@@ -200,6 +200,7 @@ public class WxPayService extends BasePayService<WxPayConfigStorage> {
* @param noticeParams 通知参数
* @return the boolean
*/
@Override
public boolean verify(NoticeParams noticeParams) {
//当前使用的微信平台证书序列号
@@ -238,7 +239,6 @@ public class WxPayService extends BasePayService<WxPayConfigStorage> {
//统一下单
Map<String, Object> parameters = wxParameterStructure.initPartner(null);
;
// wxParameterStructure.getPublicParameters(parameters);
// 商品描述
OrderParaStructure.loadParameters(parameters, WxConst.DESCRIPTION, order.getSubject());
@@ -573,6 +573,7 @@ public class WxPayService extends BasePayService<WxPayConfigStorage> {
* @param billType 账单类型 {@link WxBillType} 与 {@link WxAccountType}
* @return 返回支付方下载对账单的结果, 如果【账单类型】为gzip的话则返回值中key为data值为gzip的输入流
*/
@Override
public Map<String, Object> downloadBill(Date billDate, BillType billType) {
//获取公共参数
Map<String, Object> parameters = new HashMap<>(5);

View File

@@ -94,6 +94,7 @@ public class WxProfitSharingService extends WxPayService implements ProfitSharin
* @param noticeParams 通知参数
* @return the boolean
*/
@Override
public boolean verify(NoticeParams noticeParams) {
throw new PayErrorException(new WxPayError("", "分账不支持方式"));
}
@@ -105,6 +106,7 @@ public class WxProfitSharingService extends WxPayService implements ProfitSharin
* @param order 支付订单集
* @return 下单结果
*/
@Override
public JSONObject unifiedOrder(PayOrder order) {
Map<String, Object> parameters = new MapGen<String, Object>(WxConst.APPID, payConfigStorage.getAppId())
@@ -336,6 +338,7 @@ public class WxProfitSharingService extends WxPayService implements ProfitSharin
* @param billType 账单类型 {@link ProfitSharingBillType}
* @return 返回支付方下载对账单的结果, 如果【账单类型】为gzip的话则返回值中key为data值为gzip的输入流
*/
@Override
public Map<String, Object> downloadBill(Date billDate, BillType billType) {
Map<String, Object> parameters = new MapGen<String, Object>(WxConst.BILL_DATE, DateUtils.formatDate(billDate, DateUtils.YYYY_MM_DD))