Wechat's official account stays on the login page after the user refuses to log in silently.

Wechat official account non-silent login user refuses to stay on the login page, how to make the user exit the page directly after refusing, instead of redirecting to the page in front of Wechat.
my current implementation is that the front end has a link access server ( http://www.abc.com/wxlogin)), and the server sets the header to redirect to the Wechat authorization page. If you refuse to log in, you will stay on the http://www.abc.com/wxlogin) page

Mar.20,2021

I have an idea. You can record a cookie, when you jump to Wechat's authorization link, and then judge on the page that if you have cookie but do not have code, the user cancels the authorization. You can jump directly to http://www.abc.com/wxlogin to ok

.
Menu