第一步:
$composerrequirethans/thinkphp-filesystem-cloud第二步:在config/filesystem.php中添加配置
'aliyun'=>['type'=>'aliyun','accessId'=>'******','accessSecret'=>'******','bucket'=>'bucket','endpoint'=>'oss-cn-hongkong.aliyuncs.com','url'=>'https://oss-cn-hongkong.aliyuncs.com',//不要斜杠结尾,此处为URL地址域名。],'qiniu'=>['type'=>'qiniu','accessKey'=>'******','secretKey'=>'******','bucket'=>'bucket','url'=>'',//不要斜杠结尾,此处为URL地址域名。],授权MIT
感谢thinkphpxxtime/flysystem-aliyun-ossliz/flysystem-qiniuleague/flysystem
评论