tp6 上传图片至阿里云
使用composer在你的项目根目录下载
composer require aliyuncs/oss-sdk-php
这种方式最为简便,其他两种方式请参考官方文档https://help.aliyun.com/document_detail/85580.html?spm=a2c4g.11186623.6.1005.4dac14a0XmeHtD
首先我们先封装一个方法至服务层或者公共方法中,根据阿里云sdk的官方文档https://help.aliyun.com/document_detail/
原创
2021-08-11 14:03:43 ·
483 阅读 ·
0 评论