Excuse me, overtrue/wechat 3.1. After thinkphp is installed with composer, how to introduce the autoload.php under the vendor? I tried it in the entry file but it didn’t work. If I use require, an error will be reported. When I use include to introduce it in the public function, it is still Class 'OvertrueWechatServer. ' not found, please give detailed answers from those who have used it, thank you very much
Excuse me, overtrue/wechat 3.1. After thinkphp is installed with composer, how to introduce the autoload.php under the vendor? I tried it in the entry file but it didn’t work. If I use require, an error will be reported. When I use include to introduce it in the public function, it is still Class 'OvertrueWechatServer. ' not found, please give detailed answers from those who have used it, thank you very much
// 引入composer
require(__DIR__ . '/vendor/autoload.php');
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单