更换为更快的IPFS接口
This commit is contained in:
BlueSkyXN 2024-09-17 11:40:49 +08:00
parent be38e6aea1
commit c2c24f4e67
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ async function handleimg2ipfsRequest(request) {
// 构建图片访问链接 // 构建图片访问链接
//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}`; const accessUrl = `https://i0.wp.com/gateway.pinata.cloud/ipfs/${fileHash}?filename=${fileName}`;
console.log(`图片访问链接: ${accessUrl}`); console.log(`图片访问链接: ${accessUrl}`);
// 返回成功的链接 // 返回成功的链接

View File

@ -603,7 +603,7 @@ async function handleRequest(request) {
// 构建图片访问链接 // 构建图片访问链接
//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}`; const accessUrl = `https://i0.wp.com/gateway.pinata.cloud/ipfs/${fileHash}?filename=${fileName}`;
console.log(`图片访问链接: ${accessUrl}`); console.log(`图片访问链接: ${accessUrl}`);
// 返回成功的链接 // 返回成功的链接