API Call Address
{域名地址}/api/wechat/auth
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/wechat/auth
Calling method
This interface is the authorization interface for WeChat login web page, which needs to be opened in WeChat. This interface is a redirect interface, refer toWeb Authorization
GET
Request parameters
Field name | Type | Required | Description |
---|---|---|---|
state | string | No | When state = code, it is to obtain the verification code, other values do not have the function |
Return parameters
Will first jump to the WeChat authorization interface, and a pop-up window will be displayed after authorization.state = code
A verification code message will be sent to the WeChat official account window.
Error prompt
If there is an error, an error dialog will pop up