Home  >  Q&A  >  body text

php - Within the WeChat official account, redirect_uri parameter errors appear in many places

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.

欧阳克欧阳克2700 days ago1002

reply all(5)I'll reply

  • 滿天的星座

    滿天的星座2017-06-20 10:09:23

    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

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-20 10:09:23

    Is it because the code parameter is reused?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-20 10:09:23

    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

    reply
    0
  • 欧阳克

    欧阳克2017-06-20 10:09:23

    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.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-20 10:09:23

    Make sure the redirect_uri is really accessible

    reply
    0
  • Cancelreply