mirror of
https://github.com/BlueSkyXN/WorkerJS_CloudFlare_ImageBed.git
synced 2024-11-16 11:42:33 +08:00
0.8.8
更换为更快的IPFS接口
This commit is contained in:
parent
be38e6aea1
commit
c2c24f4e67
|
@ -51,7 +51,7 @@ async function handleimg2ipfsRequest(request) {
|
|||
|
||||
// 构建图片访问链接
|
||||
//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}`);
|
||||
|
||||
// 返回成功的链接
|
||||
|
|
|
@ -603,7 +603,7 @@ async function handleRequest(request) {
|
|||
|
||||
// 构建图片访问链接
|
||||
//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}`);
|
||||
|
||||
// 返回成功的链接
|
||||
|
|
Loading…
Reference in New Issue
Block a user