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.
滿天的星座2017-06-20 10:09:23
Check the web page authorized domain name set by WeChat public platform
Check what redirect_uri is when logging in
Compare 1 and 2 and post the results of 1 and 2
伊谢尔伦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
欧阳克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.