From 4d3bd00ea4d4cf5f2cf3357ef75f0f0a6d06b2f2 Mon Sep 17 00:00:00 2001 From: luoyang Date: Tue, 4 Sep 2018 15:46:06 +0800 Subject: [PATCH] fix hf qrcode --- .../manage/merchants/core/impls/ClientManagerImpl.java | 3 ++- .../static/payment/partner/templates/client_payment_info.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index c28077c22..9930d0d8f 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -414,7 +414,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid //HF支付链接二维码 if (client.getString("hf_pay_url") != null) { - client.put("hfQrcodeUrl", QRCodeUtils.qrcodeImageCode(client.getString("hf_pay_url"), 200, false)); + String hfQrcodeUrl = PlatformEnvironment.getEnv().concatUrl("/api/v1.0/hf_gateway/partners/" + client.getString("client_moniker") + "/jump/app"); + client.put("hfQrcodeUrl", QRCodeUtils.qrcodeImageCode(hfQrcodeUrl, 200, false)); } return client; } diff --git a/src/main/ui/static/payment/partner/templates/client_payment_info.html b/src/main/ui/static/payment/partner/templates/client_payment_info.html index b9c7901af..0925c1372 100644 --- a/src/main/ui/static/payment/partner/templates/client_payment_info.html +++ b/src/main/ui/static/payment/partner/templates/client_payment_info.html @@ -103,7 +103,7 @@

{{partner.hf_pay_url}} - +