From 95f06441fe22057e267384a3080253d9baab97c8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 九月 2020 17:57:07 +0800
Subject: [PATCH] 优化代码
---
service-front/src/main/java/com/java110/front/smo/payment/impl/RentingToPaySMOImpl.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/service-front/src/main/java/com/java110/front/smo/payment/impl/RentingToPaySMOImpl.java b/service-front/src/main/java/com/java110/front/smo/payment/impl/RentingToPaySMOImpl.java
index aea77ec..0c4f977 100644
--- a/service-front/src/main/java/com/java110/front/smo/payment/impl/RentingToPaySMOImpl.java
+++ b/service-front/src/main/java/com/java110/front/smo/payment/impl/RentingToPaySMOImpl.java
@@ -105,7 +105,7 @@
if (RentingPoolDto.STATE_TO_PAY.equals(rentingPoolDto.getState())) {
rate = Double.parseDouble(rentingPoolDto.getServiceTenantRate());
feeName += "(绉熷)";
- } else if (RentingPoolDto.STATE_TO_PAY.equals(rentingPoolDto.getState())) {
+ } else if (RentingPoolDto.STATE_OWNER_TO_PAY.equals(rentingPoolDto.getState())) {
rate = Double.parseDouble(rentingPoolDto.getServiceOwnerRate());
feeName += "(涓氫富)";
} else {
@@ -122,7 +122,7 @@
money = serviceDec.multiply(rateDec).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue();
}
- Map result = super.java110Payment(outRestTemplate, feeName, WechatAuthProperties.TRADE_TYPE_NATIVE, orderId, money, "", smallWeChatDto);
+ Map result = super.java110Payment(outRestTemplate, feeName, WechatAuthProperties.TRADE_TYPE_NATIVE, orderId, money, "", smallWeChatDto, wechatAuthProperties.getRentingNotifyUrl());
result.put("money", money);
responseEntity = new ResponseEntity(JSONObject.toJSONString(result), HttpStatus.OK);
if (!"0".equals(result.get("code"))) {
--
Gitblit v1.8.0