1.在项目中安装OSScomposer require aliyuncs/oss-sdk-php2. 2.第一个方法实现从远端下载图片到服务器本地,第二个方法实现从服务器本地上传到阿里云,一般2个方法配合使用