From a68caef0fb10d7a9a04d9478c0b61bd442f32964 Mon Sep 17 00:00:00 2001 From: Tayl0r <519104047@qq.com> Date: Mon, 25 Dec 2017 20:57:14 +0800 Subject: [PATCH] merchant login from qrcode --- .../royalpay/payment/manage/signin/web/SignInController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/signin/web/SignInController.java b/src/main/java/au/com/royalpay/payment/manage/signin/web/SignInController.java index 59c92772c..4bab11773 100644 --- a/src/main/java/au/com/royalpay/payment/manage/signin/web/SignInController.java +++ b/src/main/java/au/com/royalpay/payment/manage/signin/web/SignInController.java @@ -318,11 +318,12 @@ public class SignInController { public void verifyQRCode(@PathVariable String codeId, @RequestHeader("User-Agent") String ua, HttpServletResponse response) throws IOException { if (ua.toLowerCase().contains("micromessenger")) { response.sendRedirect("/global/userstatus/partner_signin_qrcode/" + codeId); + return; } if (ua.toLowerCase().contains("royalpayclient")) { response.sendRedirect("/api/v1.0/retail/app/partner_signin_app_qrcode/" + codeId); + return; } - System.err.println("The Wrong Browser's UA is :" + ua); throw new ForbiddenException("error.not_support_browser"); } }