From 4617a8abcf4a278ea182720aa8c6121a5236e829 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 16 二月 2023 14:42:51 +0800
Subject: [PATCH] add wechat qrcode pay fee

---
 service-acct/src/main/java/com/java110/acct/cmd/payment/QrCodePaymentCmd.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/service-acct/src/main/java/com/java110/acct/cmd/payment/QrCodePaymentCmd.java b/service-acct/src/main/java/com/java110/acct/cmd/payment/QrCodePaymentCmd.java
index 34e29d4..701b596 100644
--- a/service-acct/src/main/java/com/java110/acct/cmd/payment/QrCodePaymentCmd.java
+++ b/service-acct/src/main/java/com/java110/acct/cmd/payment/QrCodePaymentCmd.java
@@ -41,6 +41,8 @@
     @Override
     public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson, "authCode", "鏈寘鍚巿鏉冪爜");
+        Assert.hasKeyAndValue(reqJson, "receivedAmount", "鏈寘鍚敮浠橀噾棰�");
+        Assert.hasKeyAndValue(reqJson, "subServiceCode", "鏈寘鍚敮浠樻帴鍙�");
     }
 
     @Override
@@ -91,7 +93,8 @@
         }
         String appId = cmdDataFlowContext.getReqHeaders().get(CommonConstant.APP_ID);
         String userId = cmdDataFlowContext.getReqHeaders().get(CommonConstant.USER_ID);
-        JSONObject paramOut = CallApiServiceFactory.postForApi(appId, reqJson, "fee.payFee", JSONObject.class, userId);
+        //JSONObject paramOut = CallApiServiceFactory.postForApi(appId, reqJson, "fee.payFee", JSONObject.class, userId);
+        JSONObject paramOut = CallApiServiceFactory.postForApi(appId, reqJson, reqJson.getString("subServiceCode"), JSONObject.class, userId);
         cmdDataFlowContext.setResponseEntity(ResultVo.createResponseEntity(paramOut));
     }
 

--
Gitblit v1.8.0