Update jd_bean_sign.js
support random delay for new version JD_DailyBonus.js file
This commit is contained in:
2
.github/workflows/deploy_tencent_scf.yml
vendored
2
.github/workflows/deploy_tencent_scf.yml
vendored
@@ -166,3 +166,5 @@ jobs:
|
|||||||
SERVERLESS_PLATFORM_VENDOR: tencent
|
SERVERLESS_PLATFORM_VENDOR: tencent
|
||||||
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }}
|
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }}
|
||||||
TENCENT_SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }}
|
TENCENT_SECRET_KEY: ${{ secrets.TENCENT_SECRET_KEY }}
|
||||||
|
TENCENT_REGION: ${{ secrets.SCF_REGION }}
|
||||||
|
TENCENT_FUNCTION_NAME: ${{ secrets.TENCENT_FUNCTION_NAME }}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
jd_nian.js
14
jd_nian.js
@@ -9,17 +9,17 @@
|
|||||||
============Quantumultx===============
|
============Quantumultx===============
|
||||||
[task_local]
|
[task_local]
|
||||||
#京东炸年兽🧨
|
#京东炸年兽🧨
|
||||||
10 * * * * https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, tag=京东炸年兽🧨, img-url=https://raw.githubusercontent.com/yogayyy/Scripts/main/Icon/lxk0301/jd_nian.png, enabled=true
|
0 9,12,20 * * * https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, tag=京东炸年兽🧨, img-url=https://raw.githubusercontent.com/yogayyy/Scripts/main/Icon/lxk0301/jd_nian.png, enabled=true
|
||||||
|
|
||||||
================Loon==============
|
================Loon==============
|
||||||
[Script]
|
[Script]
|
||||||
cron "10 * * * *" script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js,tag=京东炸年兽🧨
|
cron "0 9,12,20 * * *" script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js,tag=京东炸年兽🧨
|
||||||
|
|
||||||
===============Surge=================
|
===============Surge=================
|
||||||
京东炸年兽🧨 = type=cron,cronexp="10 * * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js
|
京东炸年兽🧨 = type=cron,cronexp="0 9,12,20 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js
|
||||||
|
|
||||||
============小火箭=========
|
============小火箭=========
|
||||||
京东炸年兽🧨 = type=cron,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, cronexpr="10 * * * *", timeout=3600, enable=true
|
京东炸年兽🧨 = type=cron,script-path=https://raw.githubusercontent.com/LXK9301/jd_scripts/master/jd_nian.js, cronexpr="0 9,12,20 * * *", timeout=3600, enable=true
|
||||||
*/
|
*/
|
||||||
const $ = new Env('京东炸年兽🧨');
|
const $ = new Env('京东炸年兽🧨');
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ const inviteCodes = [
|
|||||||
`cgxZaDXWZPCmiUa2akPVmFMI27K6antJzucULQPYNim_BPEW1Dwd@cgxZdTXtIrPYuAqfDgSpusxr97nagU6hwFa3TXxnqM95u3ib-xt4nWqZdz8@cgxZdTXtIO-O6QmYDVf67KCEJ19JcybuMB2_hYu8NSNQg0oS2Z_FpMce45g@cgxZdTXtILiLvg7OAASp61meehou4OeZvqbjghsZlc3rI5SBk7b3InUqSQ0@cgxZdTXtIumO4w2cDgSqvYcqHwjaAzLxu0S371Dh_fctFJtN0tXYzdR7JaY`
|
`cgxZaDXWZPCmiUa2akPVmFMI27K6antJzucULQPYNim_BPEW1Dwd@cgxZdTXtIrPYuAqfDgSpusxr97nagU6hwFa3TXxnqM95u3ib-xt4nWqZdz8@cgxZdTXtIO-O6QmYDVf67KCEJ19JcybuMB2_hYu8NSNQg0oS2Z_FpMce45g@cgxZdTXtILiLvg7OAASp61meehou4OeZvqbjghsZlc3rI5SBk7b3InUqSQ0@cgxZdTXtIumO4w2cDgSqvYcqHwjaAzLxu0S371Dh_fctFJtN0tXYzdR7JaY`
|
||||||
];
|
];
|
||||||
const pkInviteCodes = [
|
const pkInviteCodes = [
|
||||||
'IgNWdiLGaPadvlqJQnnKp27-YpAvKvSYNTSkTGvZylf_0wcvqD9EMkohEd8@IgNWdiLGaPaZskfACQyhgLSpZWps-WtQEW3McifV@IgNWdiLGaPaAvmHPAQf769XqjJjMyRirPzN9-AS-WHY9Y_G7t9Cwe5gdiI2qEvHZ',
|
'IgNWdiLGaPadvlqJQnnKp27-YpAvKvSYNTSkTGvZylf_0wcvqD9EMkohEd8@IgNWdiLGaPaZskfACQyhgLSpZWps-WtQEW3McifV@IgNWdiLGaPaAvmHPAQf769XqjJjMyRirPzN9-AS-WHY9Y_G7t9Cwe5gdiI2qEvHZ@IgNWdiLGaPYCeJUfsq18UNi5ln9xEZSPRdOue8Wl3hJTS2SQzU0vulL0fHeULJaIfgqHFd7f_Ks',
|
||||||
'IgNWdiLGaPadvlqJQnnKp27-YpAvKvSYNTSkTGvZylf_0wcvqD9EMkohEd8@IgNWdiLGaPaZskfACQyhgLSpZWps-WtQEW3McifV@IgNWdiLGaPaAvmHPAQf769XqjJjMyRirPzN9-AS-WHY9Y_G7t9Cwe5gdiI2qEvHZ'
|
'IgNWdiLGaPadvlqJQnnKp27-YpAvKvSYNTSkTGvZylf_0wcvqD9EMkohEd8@IgNWdiLGaPaZskfACQyhgLSpZWps-WtQEW3McifV@IgNWdiLGaPaAvmHPAQf769XqjJjMyRirPzN9-AS-WHY9Y_G7t9Cwe5gdiI2qEvHZ'
|
||||||
]
|
]
|
||||||
!(async () => {
|
!(async () => {
|
||||||
@@ -78,7 +78,7 @@ const pkInviteCodes = [
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
await shareCodesFormat();
|
await shareCodesFormat();
|
||||||
// await shareCodesFormatPk()
|
await shareCodesFormatPk()
|
||||||
await jdNian()
|
await jdNian()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,7 @@ async function jdNian() {
|
|||||||
$.hasGroup = false
|
$.hasGroup = false
|
||||||
await pkTaskDetail()
|
await pkTaskDetail()
|
||||||
if ($.hasGroup) await pkInfo()
|
if ($.hasGroup) await pkInfo()
|
||||||
// await helpFriendsPK()
|
await helpFriendsPK()
|
||||||
}
|
}
|
||||||
await $.wait(2000)
|
await $.wait(2000)
|
||||||
await killCouponList()
|
await killCouponList()
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const clientConfig = {
|
|||||||
secretId: process.env.TENCENT_SECRET_ID,
|
secretId: process.env.TENCENT_SECRET_ID,
|
||||||
secretKey: process.env.TENCENT_SECRET_KEY,
|
secretKey: process.env.TENCENT_SECRET_KEY,
|
||||||
},
|
},
|
||||||
region: "ap-hongkong",
|
region: process.env.TENCENT_REGION, // 区域参考,https://cloud.tencent.com/document/product/213/6091
|
||||||
profile: {
|
profile: {
|
||||||
httpProfile: {
|
httpProfile: {
|
||||||
endpoint: "scf.tencentcloudapi.com",
|
endpoint: "scf.tencentcloudapi.com",
|
||||||
@@ -22,7 +22,7 @@ const clientConfig = {
|
|||||||
const client = new ScfClient(clientConfig);
|
const client = new ScfClient(clientConfig);
|
||||||
const params = {
|
const params = {
|
||||||
"Handler": "index.main_handler",
|
"Handler": "index.main_handler",
|
||||||
"FunctionName": "jd",
|
"FunctionName": process.env.TENCENT_FUNCTION_NAME, // 云函数程序名,例如 jd_scripts
|
||||||
"ZipFile": contents_in_base64
|
"ZipFile": contents_in_base64
|
||||||
};
|
};
|
||||||
client.UpdateFunctionCode(params).then(
|
client.UpdateFunctionCode(params).then(
|
||||||
|
|||||||
Reference in New Issue
Block a user