thinkphp The framework tutorial column will introduce to you how to solve the 10003 error problem when TP obtains WeChat user information. I hope it will be helpful to friends in need!
Obtaining user information, no error is reported on the PC side, only an error is reported on the WeChat side. At first, I thought it was a problem on the WeChat side.
I have been searching online for a long time and they all said it was because the oauth2 domain name added http, but the fact is that my own project did not add it.
Later, I finally saw a few different answers. I tried to change them and finally succeeded. WeChat no longer reported this error. Let me share it with you!
If you have confirmed that your oauth2 authorization url does not add http, Please check that your redirect_uri has There is no http in front of the domain name! ! ! The code is as follows:
Then, the problem is solved! I have been troubled for a long time and finally found that the solution is actually very simple. I hope it can help everyone.
The above is the detailed content of Solve the problem of 10003 error when TP obtains WeChat user information. For more information, please follow other related articles on the PHP Chinese website!
Statement
This article is reproduced at:segmentfault. If there is any infringement, please contact admin@php.cn delete
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software