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"); } }