mirror of
https://github.com/BlueSkyXN/WorkerJS_CloudFlare_ImageBed.git
synced 2024-11-16 11:42:33 +08:00
0.8.6
调整了IPFS图床域名,增强可用性
This commit is contained in:
parent
3681446d84
commit
03fa28db05
|
@ -50,7 +50,8 @@ async function handleimg2ipfsRequest(request) {
|
|||
console.log(`大小: ${fileSize} 字节`);
|
||||
|
||||
// 构建图片访问链接
|
||||
const accessUrl = `https://cdn.img2ipfs.com/ipfs/${fileHash}?filename=${fileName}`;
|
||||
//const accessUrl = `https://cdn.img2ipfs.com/ipfs/${fileHash}?filename=${fileName}`;
|
||||
const accessUrl = `https://i3.wp.com/ipfs.decentralized-content.com/ipfs/${fileHash}?filename=${fileName}`;
|
||||
console.log(`图片访问链接: ${accessUrl}`);
|
||||
|
||||
// 返回成功的链接
|
||||
|
|
|
@ -602,7 +602,8 @@ async function handleRequest(request) {
|
|||
console.log(`大小: ${fileSize} 字节`);
|
||||
|
||||
// 构建图片访问链接
|
||||
const accessUrl = `https://cdn.img2ipfs.com/ipfs/${fileHash}?filename=${fileName}`;
|
||||
//const accessUrl = `https://cdn.img2ipfs.com/ipfs/${fileHash}?filename=${fileName}`;
|
||||
const accessUrl = `https://i3.wp.com/ipfs.decentralized-content.com/ipfs/${fileHash}?filename=${fileName}`;
|
||||
console.log(`图片访问链接: ${accessUrl}`);
|
||||
|
||||
// 返回成功的链接
|
||||
|
|
Loading…
Reference in New Issue
Block a user