Home > Backend Development > PHP Tutorial > [WeChat Development] WeChat redirect_uri parameter error caused by incorrect public account background settings [Picture], public redirect_uri_PHP tutorial

[WeChat Development] WeChat redirect_uri parameter error caused by incorrect public account background settings [Picture], public redirect_uri_PHP tutorial

WBOY
Release: 2016-07-12 08:58:35
Original
1207 people have browsed it

[WeChat Development] WeChat redirect_uri parameter error caused by incorrect public account background settings [Picture], public redirect_uri

In WeChat development, such as WeChat webpage authorized login, share to friends Circle custom content when paying with WeChat h5

You may encounter WeChat redirect_uri parameter errors.

In addition to checking the correctness of your code at this time, you also need to check whether the domain name of the official account backend is correctly set.

There are at least 3 pages in the WeChat backend where you can set a domain name, please check them all.

1. Interface permissions 》Web page authorization to obtain basic user information 》Modification

As shown below, this is the domain name where the WeChat web page is authorized to log in

2. Official Account Settings 》Function Settings 》JS Interface Security Domain Name Settings

As shown in the picture, here is the setting to call the js interface such as custom sharing content domain name

3. WeChat Payment 》Development Configuration 》Payment Authorization Directory Settings

As shown in the picture, here are the domain name settings for official account payment. On the same page, there are also settings for other modes of payment

If everything is configured correctly and it still doesn’t work, then you need to check the code for problems.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1102850.htmlTechArticle[WeChat Development] The WeChat redirect_uri parameter error caused by the wrong background setting of the official account [Picture], the public redirect_uri is developed in WeChat , if you are authorized to log in to the WeChat web page, share it to your circle of friends...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template