php - Within the WeChat official account, redirect_uri parameter errors appear in many places
欧阳克
欧阳克 2017-06-20 10:07:23
0
5
970

Got drunk immediately.
After writing WeChat before, I went to get Alipay.
Today a colleague came over and said there was a problem with authorization.
Clicking will report "redirect_uri parameter error".
After looking at it, there is no problem with the web page authorized domain name setting (previously set), and there is no problem with the veifify file.
Later, I poked at other places in the official account. For example, the submenu of a common jump connection also showed "redirect_uri parameter error", and even a pushed article also showed "redirect_uri parameter error". . .
Depressed, has anyone encountered this?
Attached note:
1. The authorized domain name of the web page was set before, without the http header.
2. The payment function is not enabled.
3. For example, if the wx project is under a.com and jumps to the company website b.com, even if the b.com link cannot be entered, it will prompt this, but the strange thing is that there is a background link. When b.com/admin, only this secondary directory can be entered.

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(5)
滿天的星座
  1. Check the web page authorized domain name set by WeChat public platform

  2. Check what redirect_uri is when logging in

  3. Compare 1 and 2 and post the results of 1 and 2

仅有的幸福

Is it because the code parameter is reused?

伊谢尔伦

Whether the 40163 code reported has been reused. If yes, suggestions: For example: Direct the redirect_uri to the PHP function to get the code. Get the user openid directly and then render the page. If the code is passed in the URL, an error will be reported

学霸

Did you put the verification file under something like:
xx.com/path? If so, please put it in the root directory of the website and try again. I also encountered this problem before, I put it in the public folder Under verify, the redirect request will go to public, so the path I entered is xxx.com/verify, but the result jumps to xxx.com/path and prompts a parameter error. Entering the domain name will not work. You can try it.

仅有的幸福

Make sure the redirect_uri is really accessible

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!