更新于 07-14 22:22

This commit is contained in:
root
2021-07-14 22:22:34 -04:00
parent e984076d23
commit 039f65f400

View File

@@ -77,7 +77,7 @@ const UA = $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT :
$.hotFlag = false; //是否火爆 $.hotFlag = false; //是否火爆
console.log(`\n*****开始【京东账号${$.index}${$.nickName || $.UserName}*****\n`); console.log(`\n*****开始【京东账号${$.index}${$.nickName || $.UserName}*****\n`);
console.log(`\n如有未完成的任务,请多执行几次\n`); console.log(`\n如有未完成的任务,请多执行几次\n`);
//await movement() await movement()
if($.hotFlag)$.secretpInfo[$.UserName] = false;//火爆账号不执行助力 if($.hotFlag)$.secretpInfo[$.UserName] = false;//火爆账号不执行助力
} }
} }
@@ -374,6 +374,7 @@ 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 (
@@ -385,14 +386,15 @@ const canRequest = (url) => {
].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)
@@ -835,4 +837,4 @@ function Env(t, e) {
(this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
} }
})(t, e) })(t, e)
} }