调整了IPFS图床域名,增强可用性
This commit is contained in:
BlueSkyXN 2024-09-14 10:25:12 +08:00
parent 3681446d84
commit 03fa28db05
2 changed files with 4 additions and 2 deletions

View File

@ -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}`);
// 返回成功的链接

View File

@ -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}`);
// 返回成功的链接