Home >Backend Development >PHP Tutorial >WeChat webpage AppID parameter error

WeChat webpage AppID parameter error

PHP中文网
PHP中文网Original
2017-03-30 10:25:4611055browse

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();

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;

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!

Statement:
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