WeChat webpage AppID parameter error

PHP中文网
Release: 2023-03-03 10:42:02
Original
11014 people have browsed it

The WeChat public account is a service account, appid, Appscret, and server configuration are all checked step by step. There is no problem, but the AppID parameter error is reported. What is going on? (I have configured multiple public accounts before, and there is no problem)

The following problem was found during debugging in ECTOUCH:

   if (! class_exists($controller)) {
        E(APP_NAME . '/' . $controller . '.class.php 控制器类不存在', 404);
    }
echo '1234';return;
    $obj = new $controller();
Copy after login

The above code jumps in the WeChat custom menu, and the page displays 1234, which is normal.
If the code is changed to

 if (! class_exists($controller)) {
        E(APP_NAME . '/' . $controller . '.class.php 控制器类不存在', 404);
    }
    $obj = new $controller();
echo '1234';return;
Copy after login

The above is the detailed explanation of the AppID parameter error on the WeChat webpage. For more information, please pay attention to other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template