系统环境为linux
composer require topthink/think-image 装上了扩展
控制器头部加了 use think\Image
然后\think\image::open($imgSrc);提示Class 'think\Image' not found
去文件夹找了一圈,发现确实有think-image
然后尝试直接引用文件
require(ROOT_PATH.'/tp5/vendor/topthink/think-image/src/Image.php');
然后正常使用,为什么