修改composer.json中的autoload配置
"autoload": {
"classmap": [
"database"
],
"files":[
"vendor/alisms/aliyun-php-sdk-core/Config.php",
//假设三方类放在vendor/opensearch/目录下,则引入其中一个文件,或者autoload的文件类即可
"vendor/opensearch/OpenSearch/Autoloader/Autoloader.php",
"app/common.php"
],
"psr-4": {
"App\\":"app/"
}
},