Thinkphp project, I want to enable users to click a button to determine whether they are logged in through ajax (openid in the session means logged in status). If they are not logged in, they will be guided to the authorization page. After authorization, how can they return to the original page to execute the remaining business logic? Is it true that WeChat authorization cannot be achieved through ajax?
Thinkphp project, I want to enable users to click a button to determine whether they are logged in through ajax (openid in the session means logged in status). If they are not logged in, they will be guided to the authorization page. After authorization, how can they return to the original page to execute the remaining business logic? Is it true that WeChat authorization cannot be achieved through ajax?
WeChat authorization must be redirected through the WeChat URL. As for returning to the original business, you only need to pass your original URL and related status in the form of redirect_uri parameters before jumping
It is recommended to study the official documentation https://mp.weixin.qq.com/wiki...