[ol]因为 tencentcloud-sdk 体积较大,不适合在 vendor 直接上传,应该上传到层;在云函数中引用:https://cloud.tencent.com/document/product/583/40159require_once '/opt/autoload.php'; opt 为云函数层的路径,具体在文档有描述tencentcloud-sdk -> composer.json autoload => {"psr-4":"/opt/..."}composer -> platform_check.php 中版本限制部分 version id: 8.0.2 => 80020 7.2.0 => 70200 5.6.0 => 50600 [/ol]