Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Faker authored and Faker committed Jul 13, 2022
1 parent 76a5cc4 commit aacb76d
Show file tree
Hide file tree
Showing 5 changed files with 1,919 additions and 2,064 deletions.
3,517 changes: 1,903 additions & 1,614 deletions jd_cfd.js

Large diffs are not rendered by default.

444 changes: 0 additions & 444 deletions jd_cfd_loop.js

This file was deleted.

2 changes: 1 addition & 1 deletion jd_sign_graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let errorNum = 0
let JD_API_HOST = 'https://sendbeans.jd.com'
const turnTableId = [
{ "name": "翻牌", "id": 1082, "shopid": 1000004123, "url": "https://sendbeans.jd.com/jump/index/" },
//{ "name": "翻牌", "id": 1423, "shopid": 1000090929, "url": "https://sendbeans.jd.com/jump/index/" },
{ "name": "翻牌", "id": 1440, "shopid": 1000005670, "url": "https://sendbeans.jd.com/jump/index/" },
//{ "name": "翻牌", "id": 1419, "shopid": 1000007205, "url": "https://sendbeans.jd.com/jump/index/" },
]

Expand Down
10 changes: 5 additions & 5 deletions jd_try.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 上一作者说了每天最多300个商店,总上限为500个,jd_unsubscribe.js我已更新为批量取关版
* 请提前取关至少250个商店确保京东试用脚本正常运行
* @Address: https://github.com/X1a0He/jd_scripts_fixed/blob/main/jd_try_xh.js
cron "4 1-22/8 * * *" jd_try.js, tag:京东试用
cron "44 1-22/8 * * *" jd_try.js, tag:京东试用
*/
const $ = new Env('京东试用')
Expand Down Expand Up @@ -120,7 +120,7 @@ let args_xh = {
* 可设置环境变量:JD_TRY_APPLYINTERVAL
* 默认为3000,也就是3秒
* */
applyInterval: process.env.JD_TRY_APPLYINTERVAL * 1 || 10000,
applyInterval: process.env.JD_TRY_APPLYINTERVAL * 1 || 30000,
/*
* 商品数组的最大长度,通俗来说就是即将申请的商品队列长度
* 例如设置为20,当第一次获取后获得12件,过滤后剩下5件,将会进行第二次获取,过滤后加上第一次剩余件数
Expand Down Expand Up @@ -184,7 +184,7 @@ let args_xh = {
$.index = i + 1;
$.isLogin = true;
$.nickName = '';
await totalBean();
//await totalBean();
console.log(`\n开始【京东账号${$.index}${$.nickName || $.UserName}\n`);
$.except = false;
if(args_xh.except.includes($.UserName)){
Expand Down Expand Up @@ -545,7 +545,7 @@ function try_MyTrials(page, selected) {
'origin': 'https://prodev.m.jd.com',
'User-Agent': 'jdapp;iPhone;10.3.4;;;M/5.0;appBuild/167945;jdSupportDarkMode/1;;;Mozilla/5.0 (iPhone; CPU iPhone OS 15_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1;',
'referer': 'https://prodev.m.jd.com/',
'cookie': `${$.cookie} __jda=1.1.1.1.1.1;`
'cookie': `${$.cookie} __jda=1.0;`
},
}
$.post(options, (err, resp, data) => {
Expand Down Expand Up @@ -586,7 +586,7 @@ function taskurl_xh(appid, functionId, body = JSON.stringify({})) {
return {
"url": `${URL}?appid=${appid}&functionId=${functionId}&clientVersion=10.3.4&client=wh5&body=${encodeURIComponent(body)}`,
'headers': {
'Cookie': `${$.cookie} __jda=1.1.1.1.1.1;`,
'Cookie': `${$.cookie} __jda=1.0;`,
'user-agent': 'jdapp;iPhone;10.1.2;15.0;ff2caa92a8529e4788a34b3d8d4df66d9573f499;network/wifi;model/iPhone13,4;addressid/2074196292;appBuild/167802;jdSupportDarkMode/1;Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1',
'Referer': 'https://prodev.m.jd.com/',
'origin': 'https://prodev.m.jd.com/',
Expand Down
10 changes: 10 additions & 0 deletions jx_one2shopping.js

Large diffs are not rendered by default.

0 comments on commit aacb76d

Please sign in to comment.