mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2026-04-03 21:13:28 +08:00
更新于 07-14 22:25
This commit is contained in:
11
jd_test.js
11
jd_test.js
@@ -374,7 +374,6 @@ var _0xodl='jsjiami.com.v6',_0x36df=[_0xodl,'ZklZaUE=','ZXJyb3I=','ZkZJd1Y=','WX
|
|||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
const canRequest = (url) => {
|
const canRequest = (url) => {
|
||||||
const canRequest = (url) => {
|
|
||||||
const [, , host] = url.split('/')
|
const [, , host] = url.split('/')
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@@ -383,18 +382,18 @@ const canRequest = (url) => {
|
|||||||
'cdn.jsdelivr.net',
|
'cdn.jsdelivr.net',
|
||||||
'lkyl.dianpusoft.cn',
|
'lkyl.dianpusoft.cn',
|
||||||
'raw.githubusercontent.com',
|
'raw.githubusercontent.com',
|
||||||
|
'www.fastmock.site',
|
||||||
].includes(host) &&
|
].includes(host) &&
|
||||||
!/\.jd\.com$/.test(host) &&
|
!/\.jd\.com$/.test(host) &&
|
||||||
!/\.jingxi\.com/.test(host) &&
|
!/\.jingxi\.com/.test(host) &&
|
||||||
!/\.isvjcloud\.com/.test(host) &&
|
!/\.isvjcloud\.com/.test(host)
|
||||||
!/\.fastmock\.site/.test(host)
|
|
||||||
) {
|
) {
|
||||||
console.log(host, url)
|
console.log(host, url)
|
||||||
throw new Error(`该请求 url 不合法: ${url}`)
|
throw new Error(`该请求 url 不合法: ${url}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Env(t, e) {
|
function Env(t, e) {
|
||||||
'undefined' != typeof process &&
|
'undefined' != typeof process &&
|
||||||
JSON.stringify(process.env).indexOf('GITHUB') > -1 &&
|
JSON.stringify(process.env).indexOf('GITHUB') > -1 &&
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
@@ -837,4 +836,4 @@ const canRequest = (url) => {
|
|||||||
(this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
|
(this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
|
||||||
}
|
}
|
||||||
})(t, e)
|
})(t, e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user