mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-05-01 09:36:41 +08:00
1
This commit is contained in:
@@ -106,6 +106,16 @@ Recombin_CK_Mode="3" Recombin_CK_ARG1="5" Recombin_CK_ARG2="5" 假设有100个C
|
||||
|
||||
其他用法具体参考[文档](https://docs.qq.com/doc/DTXh6QUVjRXJ1TFdN)
|
||||
|
||||
## 通用变量
|
||||
|
||||
自定义sign export SIGN_URL='url'
|
||||
|
||||
代理API export DY_PROXY='url'(部分js支持,看日志说明)
|
||||
|
||||
代理池 export DP_POOL='url'(全部js支持)
|
||||
|
||||
使用代理池白名单(js文件名关键字如fruit),如fruit export PERMIT_JS='fruit'
|
||||
|
||||
|
||||
## 支持的通知方式
|
||||
|
||||
|
||||
+3
-3
@@ -33,9 +33,9 @@ if (JSON.stringify(process.env).indexOf('GITHUB') > -1) {
|
||||
//})()
|
||||
CookieJDs = [...new Set(CookieJDs.filter(item => !!item))]
|
||||
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
|
||||
console.log(`\n====================共${CookieJDs.length}个京东账号Cookie=================\n`);
|
||||
console.log(`============脚本执行时间:${formatdate(new Date(new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000))}=============\n`)
|
||||
console.log('>>>>>>>>>>>>>>6Dy提醒您:有问题先更新不行在反馈>>>>>>>>>>>>>>>\n')
|
||||
console.log(`\n====================共${CookieJDs.length}个京东账号Cookie=================`);
|
||||
console.log(`===========脚本执行时间:${formatdate(new Date(new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000))}============`);
|
||||
console.log('>>>>>>>>>>>>6Dy提醒您:有问题先更新不行在反馈>>>>>>>>>>>>>\n');
|
||||
for (let i = 0; i < CookieJDs.length; i++) {
|
||||
if (!CookieJDs[i].match(/pt_pin=(.+?);/) || !CookieJDs[i].match(/pt_key=(.+?);/)) console.log(`\n提示:京东cookie 【${CookieJDs[i]}】填写不规范,可能会影响部分脚本正常使用。正确格式为: pt_key=xxx;pt_pin=xxx;(分号;不可少)\n`);
|
||||
CookieJDs[i] = CookieJDs[i].replace(/[\u4e00-\u9fa5]/g, (str) => encodeURI(str));
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user