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
The article discusses ThinkPHP's built-in testing framework, highlighting its key features like unit and integration testing, and how it enhances application reliability through early bug detection and improved code quality.
The article discusses key considerations for using ThinkPHP in serverless architectures, focusing on performance optimization, stateless design, and security. It highlights benefits like cost efficiency and scalability, but also addresses challenges
The article discusses implementing service discovery and load balancing in ThinkPHP microservices, focusing on setup, best practices, integration methods, and recommended tools.[159 characters]
ThinkPHP's IoC container offers advanced features like lazy loading, contextual binding, and method injection for efficient dependency management in PHP apps.Character count: 159
ThinkPHP benefits SaaS apps with its lightweight design, MVC architecture, and extensibility. It enhances scalability, speeds development, and improves security through various features.
The article outlines building a distributed task queue system using ThinkPHP and RabbitMQ, focusing on installation, configuration, task management, and scalability. Key issues include ensuring high availability, avoiding common pitfalls like imprope
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),