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!