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 Aug 18, 2022
1 parent df0b48f commit 5714a40
Show file tree
Hide file tree
Showing 7 changed files with 2,199 additions and 44 deletions.
2,085 changes: 2,085 additions & 0 deletions function/sign_graphics_validate.js

Large diffs are not rendered by default.

78 changes: 46 additions & 32 deletions jd_dpqd.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,50 @@
/*
店铺签到,各类店铺签到,有新的店铺直接添加token即可
============Quantumultx===============
[task_local]
#店铺签到
15 2,14 * * * https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js, tag=店铺签到, enabled=true
===========Loon============
[Script]
cron "15 2,14 * * *" script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js,tag=店铺签到
============Surge=============
店铺签到 = type=cron,cronexp="15 2,14 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js
===========小火箭========
店铺签到 = type=cron,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.jss, cronexpr="15 2,14 * * *", timeout=3600, enable=true
cron 45 0 0,23 * * * jd_dpqd.js
店铺签到,店铺Token默认从本地环境变量DPQDTK中获取,若本地无则从远端获取。
Fix by HarbourJ
TG: https://t.me/HarbourToulu
环境变量:
DPQDTK: token1&token2
仓库不再提供token
*/

let token = []
if (process.env.DPQDTK) {
if (process.env.DPQDTK.includes('\n')) {
token = [...process.env.DPQDTK.split('\n'),...token]
} else {
token = [...process.env.DPQDTK.split('&'),...token]
}
}

if (!token.length) {
console.log('无本地店铺签到token, 尝试获取远端店铺签到token')
token = [
'EEE3CE0E98CAA371BF548D1A78A88D46',
'0903CFF8DCB8B5A701D911BEEBF285F3',
'B555EE1A9313D0DFD3074C2DE96604AC',
'D727A06C3B3DF203AF5D21510B771D07',
'466E9758EF90135CC36DDE1D804FA682',
'8BFBEC50A0469627A70E706579855B25',
'AF71DCCF9801F55C06D1EDB1E5D5C32A',
'19DB0FE23AA9DC4864A9375CB7526362',
'82052AC19BA3734BF2F5E7E91B283537',
'BCBF4EE738A35FFC62745CB7FD5FFE12',
'91DF93C32D9AA63043391C00C14431EE',
'EA2128634865A07EFBBAC88F995E0765',
'71DEC5804B8E333A9DAA0BF16EC6C8EB',
'62AF2584588CFE5CC26C8F3D6EBBEDD7',
'6F79CE75B2D272EBC34718C6C07CB63B',
'75196DED685B6BF6EB7B55FBD9E45A77',
'93C049896859A8BA43DF7AAEF841DA87',
'5E75F128888B2002D54A69A92BCE64AB',
'19DB0FE23AA9DC4864A9375CB7526362',
'AF71DCCF9801F55C06D1EDB1E5D5C32A',
]
}
console.log(token)
const $ = new Env('店铺签到');
const notify = $.isNode() ? require('./sendNotify') : '';
//Node.js用户请在jdCookie.js处填写京东ck;
Expand All @@ -24,25 +57,6 @@ let activityId=''
let vender=''
let num=0
let shopname=''
const token = [
"7B5E686A0CAF1C144620A3FFE04AFF1E",
"CD2A12D976AFB32410B076C4BB61FFFD",
"A1577946DE409D3AC4B4FDCFF4681625",
"E0087463F85940305DCA705308208EBB",
"773D63918C47D32F33DDB2FB78C5820A",
"35161A49032726A1A48E435DD2874114",
"DA71409388CE531378225A6BBF96CDFE",
"8C7A8DEAB8A6C8AC98EEE364EBB10F7A",
"A6D7A29DB6C46B7D3F7CD6EC3AE110C6",
"F9E7DBB640BB2094C6A7755066DCE5CA",
"30D17316E31067004ED239DE9F121B0D",
"A07B0E92FA199CB1EF432D315FFC5F62",
"4E4B5F141AADE9638771B6226AD426D0",
"8C7A8DEAB8A6C8AC98EEE364EBB10F7A",
"8CC487234D54778E2F1C738C79B397BA",
"500B9537712BD828EFC8C4D036B9752A",
"D082916926793D99220819F05914C94F"
]

if ($.isNode()) {
Object.keys(jdCookieNode).forEach((item) => {
Expand Down Expand Up @@ -72,7 +86,7 @@ if ($.isNode()) {
$.isLogin = true;
$.nickName = '';
message = '';
//await TotalBean();
await TotalBean();
console.log(`\n******开始【京东账号${$.index}${$.nickName || $.UserName}*********\n`);
if (!$.isLogin) {
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
Expand Down
4 changes: 2 additions & 2 deletions jd_luck_draw.js

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions jd_lzaddCart.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions jd_lzdz1_customizedd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jd_sign_graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ 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": 815, "shopid": 887726, "url": "https://sendbeans.jd.com/jump/index/" },
//{ "name": "翻牌", "id": 1419, "shopid": 1000007205, "url": "https://sendbeans.jd.com/jump/index/" },
//{ "name": "翻牌", "id": 815, "shopid": 887726, "url": "https://sendbeans.jd.com/jump/index/" },
{ "name": "翻牌", "id": 1440, "shopid": 1000005670, "url": "https://sendbeans.jd.com/jump/index/" },
]

!(async () => {
Expand Down
19 changes: 11 additions & 8 deletions jd_wdz.js

Large diffs are not rendered by default.

0 comments on commit 5714a40

Please sign in to comment.