From be9380de3d6c1c52a58bfae4a3146c016071de70 Mon Sep 17 00:00:00 2001 From: Tayl0r <519104047@qq.com> Date: Fri, 9 Mar 2018 09:10:08 +0800 Subject: [PATCH] =?UTF-8?q?[Y]=20=E5=90=88=E5=90=8C=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payment/manage/dev/web/TestController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java b/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java index 2e0594400..909d067e0 100644 --- a/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java +++ b/src/main/java/au/com/royalpay/payment/manage/dev/web/TestController.java @@ -190,6 +190,16 @@ public class TestController implements ApplicationEventPublisherAware { if (bestPayRate != null) { client.put("bestpay_rate", bestPayRate.getBigDecimal("rate_value").setScale(2, BigDecimal.ROUND_DOWN)); } + + JSONObject jdRate = merchantInfoProvider.clientCurrentRate(client.getIntValue("client_id"), new Date(), "jd"); + if (jdRate != null) { + client.put("jd_rate", jdRate.getBigDecimal("rate_value").setScale(2, BigDecimal.ROUND_DOWN)); + } + + JSONObject alipayOnlineRate = merchantInfoProvider.clientCurrentRate(client.getIntValue("client_id"), new Date(), "AlipayOnline"); + if (alipayOnlineRate != null) { + client.put("alipay_online_rate", alipayOnlineRate.getBigDecimal("rate_value").setScale(2, BigDecimal.ROUND_DOWN)); + } } catch (Exception ignored) { //do nothing }