mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2025-07-17 17:33:47 +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
|
||||
const canRequest = (url) => {
|
||||
const canRequest = (url) => {
|
||||
const [, , host] = url.split('/')
|
||||
|
||||
if (
|
||||
@@ -383,18 +382,18 @@ const canRequest = (url) => {
|
||||
'cdn.jsdelivr.net',
|
||||
'lkyl.dianpusoft.cn',
|
||||
'raw.githubusercontent.com',
|
||||
'www.fastmock.site',
|
||||
].includes(host) &&
|
||||
!/\.jd\.com$/.test(host) &&
|
||||
!/\.jingxi\.com/.test(host) &&
|
||||
!/\.isvjcloud\.com/.test(host) &&
|
||||
!/\.fastmock\.site/.test(host)
|
||||
!/\.isvjcloud\.com/.test(host)
|
||||
) {
|
||||
console.log(host, url)
|
||||
throw new Error(`该请求 url 不合法: ${url}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Env(t, e) {
|
||||
function Env(t, e) {
|
||||
'undefined' != typeof process &&
|
||||
JSON.stringify(process.env).indexOf('GITHUB') > -1 &&
|
||||
process.exit(0)
|
||||
@@ -837,4 +836,4 @@ const canRequest = (url) => {
|
||||
(this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
|
||||
}
|
||||
})(t, e)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user