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