Browse Source

修改:随行付优惠券参数添加

jk-GitHub-coder 4 years ago
parent
commit
1254a476c2

+ 17 - 0
YijiaRestful/src/main/java/com/platform/yijia/controller/PayController.java

@@ -428,6 +428,23 @@ public class PayController {
         //将业务参数存放在 JSON 对象中
         JSONObject reqData = new JSONObject();
 
+        //备用
+        if(request.containsKey("extend") && request.get("extend") !=null){
+            String extend = request.get("extend").toString();
+            reqData.put("extend", extend);
+        }
+
+        //优惠券参数
+        if(request.containsKey("promotionDetail") && request.get("promotionDetail") !=null){
+            String promotionDetail = request.get("promotionDetail").toString();
+            reqData.put("promotionDetail", promotionDetail);
+        }
+        //商家出账金额
+        if(request.containsKey("realRefundAmount") && request.get("realRefundAmount") !=null){
+            String realRefundAmount = request.get("realRefundAmount").toString();
+            reqData.put("realRefundAmount", realRefundAmount);
+        }
+
         reqData.put("sxfUuid",sxfUuid);
         reqData.put("payWay",payWay);
         reqData.put("payTime",payTime);