rename ipfsGateway to ipfsLens
This commit is contained in:
parent
22d79ffc06
commit
9e41a6d203
@ -146,8 +146,8 @@ module.exports = {
|
||||
return route
|
||||
}
|
||||
// 纯字母的cid
|
||||
if (/^[\da-zA-Z]+$/.test(route)) {
|
||||
return `${envar.ipfsGateway.replace(/\/$/, '')}/${route.replace(/^\//, '')}`
|
||||
if (/^[\da-zA-Z]+$/.test(route) && envar.ipfsLens) {
|
||||
return `${envar.ipfsLens.replace(/\/$/, '')}/${route.replace(/^\//, '')}`
|
||||
}
|
||||
//// base url / 后台服务器url 需要组装。包括了 route === '_filestore/xxx' 的情况
|
||||
route = route.replace(/^\//, '')
|
||||
|
Loading…
Reference in New Issue
Block a user