阿里云oss


阿里云oss相关

下载oss文件
1
2
3
4
5
6
7
8
$referer = "https://***.com/"; //来源仿造
$opts = [
'http' => [
'header' => ["Referer: $referer\r\n"],
],
];
$context = stream_context_create($opts);
file_put_contents($path, file_get_contents($pdfContentPath, false, $context));
小程序oss白名单
1
2
小程序添加oss防盗链数据  需要在oss添加白名单
https://servicewechat.com和https://short.weixin.qq