mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 08:54:08 +08:00
sync
This commit is contained in:
@@ -85,7 +85,9 @@ if ($.isNode()) {
|
|||||||
$.keywordsNum = 0
|
$.keywordsNum = 0
|
||||||
if ($.beforeRemove !== "0") {
|
if ($.beforeRemove !== "0") {
|
||||||
await cartFilter_xh(venderCart);
|
await cartFilter_xh(venderCart);
|
||||||
|
$.retry = 0;
|
||||||
if (parseInt($.beforeRemove) !== $.keywordsNum) await removeCart();
|
if (parseInt($.beforeRemove) !== $.keywordsNum) await removeCart();
|
||||||
|
if($.retry = 2) break;
|
||||||
else {
|
else {
|
||||||
console.log('\n由于购物车内的商品均包含关键字,本次执行将不删除购物车数据')
|
console.log('\n由于购物车内的商品均包含关键字,本次执行将不删除购物车数据')
|
||||||
break;
|
break;
|
||||||
@@ -194,6 +196,7 @@ function removeCart() {
|
|||||||
console.log('删除失败')
|
console.log('删除失败')
|
||||||
console.log(data.errMsg)
|
console.log(data.errMsg)
|
||||||
$.error = true;
|
$.error = true;
|
||||||
|
$.retry++;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$.logErr(e, resp);
|
$.logErr(e, resp);
|
||||||
|
|||||||
45
jd_dpqd.js
45
jd_dpqd.js
@@ -25,31 +25,34 @@ let vender=''
|
|||||||
let num=0
|
let num=0
|
||||||
let shopname=''
|
let shopname=''
|
||||||
const token = [
|
const token = [
|
||||||
"E7C2D644F989BBA3ADB563A682E591C6",
|
"156E859B3A314171CA34B780C19CB215",
|
||||||
"1BF7556DFA8680BBCDD2F57937830BB7",
|
"35BA76ED53A953E03F77EE5379C28BE5",
|
||||||
"4BE1B58FE1360409A5967CAD1127B5A8",
|
"4BE1B58FE1360409A5967CAD1127B5A8",
|
||||||
"34864F266AFC02DDB7EEAD5A2AF9B4F7",
|
|
||||||
"7166EF6ED03BA34C3DBBA1ADB27E56C1",
|
|
||||||
"C031053EDBD2C047C072C53F80D82577",
|
|
||||||
"18FB7E1DE514D5E40D880585D4145DEC",
|
|
||||||
"CACEC89AD3A20309748FEC03B0B0C50C",
|
|
||||||
"E7C2D644F989BBA3ADB563A682E591C6",
|
|
||||||
"6359776E10B514A773610D94579BFA3B",
|
|
||||||
"B30FC91ED327EE2E1C7C8B2214D8751A",
|
"B30FC91ED327EE2E1C7C8B2214D8751A",
|
||||||
"3AF4B68A4BB3BD09D371B766E6A1B721",
|
"3119848AE10A9E0858685099EB6C28CC",
|
||||||
"273EC9E9CA27DFDD85478972A1A0ED6F",
|
|
||||||
"A7DDDEAE3438B27260BDC8B1A555CE6F",
|
"A7DDDEAE3438B27260BDC8B1A555CE6F",
|
||||||
"3B27B2B9E70249C339D66F27B7E133F0",
|
"3B27B2B9E70249C339D66F27B7E133F0",
|
||||||
"AED3C29E6DA2F0AA84C08F0F726D59C2",
|
"C031053EDBD2C047C072C53F80D82577",
|
||||||
"6CB820BAC6C0CD8D1F90C342F0EA1018",
|
"8E3DB8D17AD97471F53959CF2F2439FE",
|
||||||
"38C4871110737702A9B3E6CC452977D1",
|
"89425692E74B610F07E9783B75CA299B",
|
||||||
"AED3C29E6DA2F0AA84C08F0F726D59C2",
|
"98640F3DCA10BB955E8039117A1F819F",
|
||||||
"35BA76ED53A953E03F77EE5379C28BE5",
|
"92E3956A3FAF71B6922B0AA8D9ED070A",
|
||||||
"038B83D1D0D374F58821C7EDC4F3B5AE",
|
"1C963AA3BBBD0396784BD0CA527BCDF8",
|
||||||
"0EED5C32E8002D6EF892D3995A0A9AA5",
|
"C5FD1482A207F2CC65570F8FBC492C9A",
|
||||||
"D5A12069E47F17718EF7E7381444A5FE",
|
"5CF1A3455369BDB3D1153D9FC974CAFA",
|
||||||
"9F64084BD36FE0EBCDE1EDC956656501",
|
"E29627AF30D59CF7FE7B01C63BD9A975",
|
||||||
"7516691B34E89137D3C911BBF7D86ACD"
|
"5B43A702C5CC14509CD8FB6F725326FC",
|
||||||
|
"451389BCDC4E8B258DD3F21CDB827589",
|
||||||
|
"57970BD464D679B43A7A0F5585F42677",
|
||||||
|
"21CEF5FF054814ADC61753FFFF417F03",
|
||||||
|
"A47418AED7F226A649E8886FCE2E02B3",
|
||||||
|
"65604889E08858A41E2DDB76D075C3BA",
|
||||||
|
"B7F1BE70638D6747223271745CB0D505",
|
||||||
|
"21CEF5FF054814ADC61753FFFF417F03",
|
||||||
|
"B6AF39DB2F83BEA76726BF0D71CCDDD8",
|
||||||
|
"9B57C79395931A570FB01264D48E9673",
|
||||||
|
"4706B9DB78BBCC66BCB76862EB147AD2",
|
||||||
|
"85B78F013645D1EC53D5F3974528654A"
|
||||||
]
|
]
|
||||||
|
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
|
|||||||
125
jd_fcwb.py
125
jd_fcwb.py
@@ -1,18 +1,20 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
'''
|
'''
|
||||||
定时自定义
|
cron: 1 1 1 1 *
|
||||||
35 15 27 5 * jd_fcwb.py
|
|
||||||
new Env('发财挖宝');
|
new Env('发财挖宝');
|
||||||
活动入口: 京东极速版>我的>发财挖宝
|
活动入口: 京东极速版 > 我的 > 发财挖宝
|
||||||
脚本功能为: 挖宝,提现,没有助力功能!
|
最高可得总和为10元的微信零钱和红包
|
||||||
当血量剩余 1 时停止挖宝,领取奖励并提现
|
脚本功能为: 挖宝,提现,没有助力功能,当血量剩余 1 时停止挖宝,领取奖励并提现
|
||||||
|
|
||||||
|
目前需要完成逛一逛任务并且下单任务才能通关,不做的话大概可得1.5~2块的微信零钱
|
||||||
'''
|
'''
|
||||||
import os,json,random,time,re,string,functools,asyncio
|
import os,json,random,time,re,string,functools,asyncio
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('../../tmp')
|
sys.path.append('../../tmp')
|
||||||
|
print('\n运行本脚本之前请手动进入游戏点击一个方块\n')
|
||||||
print('\n挖的如果都是0.01红包就是黑了,别挣扎了!\n')
|
print('\n挖的如果都是0.01红包就是黑了,别挣扎了!\n')
|
||||||
print('\n当血量剩余 1 时停止挖宝,领取奖励并提现,请先跑助力\n')
|
print('\n默认自动领取奖励,关闭请在代码383行加上#号注释即可\n')
|
||||||
try:
|
try:
|
||||||
import requests
|
import requests
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@@ -127,7 +129,7 @@ def taskGetUrl(functionId, body, cookie):
|
|||||||
|
|
||||||
# 剩余血量
|
# 剩余血量
|
||||||
def xueliang(cookie):
|
def xueliang(cookie):
|
||||||
body={"linkId":linkId}
|
body={"linkId":linkId,"round":1}
|
||||||
res=taskGetUrl("happyDigHome", body, cookie)
|
res=taskGetUrl("happyDigHome", body, cookie)
|
||||||
if not res:
|
if not res:
|
||||||
return
|
return
|
||||||
@@ -155,16 +157,17 @@ def jinge(cookie,i):
|
|||||||
|
|
||||||
# 页面数据
|
# 页面数据
|
||||||
def happyDigHome(cookie):
|
def happyDigHome(cookie):
|
||||||
body={"linkId":linkId}
|
body={"linkId":linkId,"round":1}
|
||||||
res=taskGetUrl("happyDigHome", body, cookie)
|
res=taskGetUrl("happyDigHome", body, cookie)
|
||||||
|
exit_flag = "false"
|
||||||
if not res:
|
if not res:
|
||||||
return
|
return
|
||||||
if res['code']==0:
|
if res['code']==0:
|
||||||
if res['success']:
|
if res['success']:
|
||||||
curRound=res['data']['curRound'] # 未知
|
curRound=res['data']['curRound'] # 未知
|
||||||
incep_blood=res['data']['blood'] # 剩余血量
|
incep_blood=res['data']['blood'] # 剩余血量
|
||||||
roundList=res['data']['roundList'] # 3个总池子
|
roundList=res['data']['roundList'] # 3个总池子
|
||||||
for e,roundList_n in enumerate(roundList): # 迭代每个池子
|
for e,roundList_n in enumerate(roundList): # 迭代每个池子
|
||||||
roundid=roundList_n['round'] # 池序号
|
roundid=roundList_n['round'] # 池序号
|
||||||
state=roundList_n['state']
|
state=roundList_n['state']
|
||||||
rows=roundList_n['rows'] # 池规模,rows*rows
|
rows=roundList_n['rows'] # 池规模,rows*rows
|
||||||
@@ -174,9 +177,14 @@ def happyDigHome(cookie):
|
|||||||
chunks=roundList_n['chunks'] # 当前池详情list
|
chunks=roundList_n['chunks'] # 当前池详情list
|
||||||
|
|
||||||
a=jinge(cookie,roundid)
|
a=jinge(cookie,roundid)
|
||||||
print(f'当前池序号为 {roundid} \n当前池规模为 {rows}*{rows}')
|
if roundid==1:
|
||||||
print(f'剩余血量 {a[0]}')
|
print(f'\n开始 "入门" 难度关卡({rows}*{rows})')
|
||||||
print(f'当前池已得京东红包 {a[2]}\n当前池已得微信红包 {a[1]}\n')
|
elif roundid==2:
|
||||||
|
print(f'\n开始 "挑战" 难度关卡({rows}*{rows})')
|
||||||
|
elif roundid==3:
|
||||||
|
print(f'\n开始 "终极" 难度关卡({rows}*{rows})')
|
||||||
|
print(f'当前剩余血量 {a[0]}🩸')
|
||||||
|
## print(f'当前池已得京东红包 {a[2]}\n当前池已得微信红包 {a[1]}\n')
|
||||||
_blood=xueliang(cookie)
|
_blood=xueliang(cookie)
|
||||||
if _blood>1 or incep_blood>=21:
|
if _blood>1 or incep_blood>=21:
|
||||||
happyDigDo(cookie,roundid,0,0)
|
happyDigDo(cookie,roundid,0,0)
|
||||||
@@ -187,35 +195,43 @@ def happyDigHome(cookie):
|
|||||||
for n in range(roundid_n):
|
for n in range(roundid_n):
|
||||||
for i in range(roundid_n):
|
for i in range(roundid_n):
|
||||||
_blood=xueliang(cookie)
|
_blood=xueliang(cookie)
|
||||||
if _blood>1 or incep_blood>=21:
|
if _blood>1 or incep_blood>=21:
|
||||||
print(f'当前血量为 {_blood} 健康,继续挖宝')
|
## print(f'当前血量为 {_blood}')
|
||||||
print(f'本次挖取坐标为 ({n},{i})')
|
a=n+1
|
||||||
|
b=i+1
|
||||||
|
print(f'挖取坐标({a},{b})')
|
||||||
happyDigDo(cookie,roundid,n,i)
|
happyDigDo(cookie,roundid,n,i)
|
||||||
else:
|
else:
|
||||||
a=jinge(cookie,roundid)
|
a=jinge(cookie,roundid)
|
||||||
print(f'当前血量为 {_blood} 不健康,结束该池挖宝')
|
print(f'没血了,不挖了')
|
||||||
print(f'当前池已得京东红包 {a[2]}\n当前池已得微信红包 {a[1]}\n')
|
exit_flag = "true"
|
||||||
|
## print(f'当前池已得京东红包 {a[2]}\n当前池已得微信红包 {a[1]}\n')
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if exit_flag == "true":
|
||||||
|
break
|
||||||
|
if exit_flag == "true":
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
print(f'获取数据失败\n{res}\n')
|
print(f'获取数据失败\n{res}\n')
|
||||||
else:
|
else:
|
||||||
print(f'获取数据失败\n{res}\n')
|
print(f'获取数据失败\n{res}\n')
|
||||||
|
|
||||||
|
|
||||||
# # 玩一玩
|
# 玩一玩
|
||||||
# def apDoTask(cookie):
|
def apDoTask(cookie):
|
||||||
# print('开始 玩一玩')
|
print('开始做玩一玩任务')
|
||||||
# body={"linkId":linkId,"taskType":"BROWSE_CHANNEL","taskId":454,"channel":4,"itemId":"https%3A%2F%2Fsignfree.jd.com%2F%3FactivityId%3DPiuLvM8vamONsWzC0wqBGQ","checkVersion":False}
|
body={"linkId":linkId,"taskType":"BROWSE_CHANNEL","taskId":454,"channel":4,"itemId":"https%3A%2F%2Fsignfree.jd.com%2F%3FactivityId%3DPiuLvM8vamONsWzC0wqBGQ","checkVersion":False}
|
||||||
# res=taskGetUrl('apDoTask', body, cookie)
|
res=taskGetUrl('apDoTask', body, cookie)
|
||||||
# if not res:
|
if not res:
|
||||||
# return
|
return
|
||||||
# try:
|
try:
|
||||||
# if res['success']:
|
if res['success']:
|
||||||
# print('任务完成,获得血量 1\n')
|
print('玩好了')
|
||||||
# else:
|
else:
|
||||||
# print(f"{res['errMsg']}\n")
|
print(f"{res['errMsg']}")
|
||||||
# except:
|
except:
|
||||||
# print(f"错误\n{res}\n")
|
print(f"错误\n{res}")
|
||||||
|
|
||||||
|
|
||||||
# 挖宝
|
# 挖宝
|
||||||
@@ -228,19 +244,19 @@ def happyDigDo(cookie,roundid,rowIdx,colIdx):
|
|||||||
if res['success']:
|
if res['success']:
|
||||||
typeid=res['data']['chunk']['type']
|
typeid=res['data']['chunk']['type']
|
||||||
if typeid==2:
|
if typeid==2:
|
||||||
print(f"挖到京东红包 {res['data']['chunk']['value']}\n")
|
print(f"获得极速版红包 {res['data']['chunk']['value']} 🧧\n")
|
||||||
elif typeid==3:
|
elif typeid==3:
|
||||||
print(f"挖到微信红包 {res['data']['chunk']['value']}\n")
|
print(f"🎉 获得微信零钱 {res['data']['chunk']['value']} 💰\n")
|
||||||
elif typeid==4:
|
elif typeid==4:
|
||||||
print(f"挖到炸弹\n")
|
print(f"💥Boom💥 挖到了炸弹 💣\n")
|
||||||
elif typeid==1:
|
elif typeid==1:
|
||||||
print(f"挖到优惠券\n")
|
print(f"获得优惠券 🎟️\n")
|
||||||
else:
|
else:
|
||||||
print(f'挖到外星物品\n')
|
print(f'不知道挖到了什么 🎁\n')
|
||||||
else:
|
else:
|
||||||
print(f'挖取失败\n{res}\n')
|
print(f'{res}\n挖宝失败\n')
|
||||||
else:
|
else:
|
||||||
print(f'挖取失败\n{res}\n')
|
print(f'{res}\n挖宝失败\n')
|
||||||
|
|
||||||
# # 助力码
|
# # 助力码
|
||||||
# def inviteCode(cookie):
|
# def inviteCode(cookie):
|
||||||
@@ -273,10 +289,9 @@ def happyDigDo(cookie,roundid,rowIdx,colIdx):
|
|||||||
|
|
||||||
# 领取奖励
|
# 领取奖励
|
||||||
def happyDigExchange(cookie):
|
def happyDigExchange(cookie):
|
||||||
for n in range(0,4):
|
for n in range(1,4):
|
||||||
xueliang(cookie)
|
xueliang(cookie)
|
||||||
|
print(f"\n开始领取第{n}场的奖励")
|
||||||
print('开始领取奖励')
|
|
||||||
body={"round":n,"linkId":linkId}
|
body={"round":n,"linkId":linkId}
|
||||||
res=taskGetUrl("happyDigExchange", body, cookie)
|
res=taskGetUrl("happyDigExchange", body, cookie)
|
||||||
if not res:
|
if not res:
|
||||||
@@ -284,17 +299,18 @@ def happyDigExchange(cookie):
|
|||||||
if res['code']==0:
|
if res['code']==0:
|
||||||
if res['success']:
|
if res['success']:
|
||||||
try:
|
try:
|
||||||
print(f"领取到微信红包 {res['data']['wxValue']}")
|
print(f"已领取极速版红包 {res['data']['redValue']} 🧧")
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
print(f"领取到京东红包 {res['data']['redValue']}\n")
|
|
||||||
except:
|
except:
|
||||||
print('')
|
print('')
|
||||||
|
if res['data']['wxValue'] != "0":
|
||||||
|
try:
|
||||||
|
print(f"可提现微信零钱 {res['data']['wxValue']} 💰")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
print(res['errMsg']+'\n')
|
print(res['errMsg'])
|
||||||
else:
|
else:
|
||||||
print(res['errMsg']+'\n')
|
print(res['errMsg'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -316,14 +332,18 @@ def spring_reward_list(cookie):
|
|||||||
poolBaseId=_items['poolBaseId']
|
poolBaseId=_items['poolBaseId']
|
||||||
prizeGroupId=_items['prizeGroupId']
|
prizeGroupId=_items['prizeGroupId']
|
||||||
prizeBaseId=_items['prizeBaseId']
|
prizeBaseId=_items['prizeBaseId']
|
||||||
if '红包' not in prizeDesc:
|
if '红包' in f"{prizeDesc}":
|
||||||
print('尝试微信提现')
|
continue
|
||||||
|
if '券' in f"{prizeDesc}":
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
print('\n去提现微信零钱 💰')
|
||||||
time.sleep(3.2)
|
time.sleep(3.2)
|
||||||
wecat(cookie,amountid,poolBaseId,prizeGroupId,prizeBaseId)
|
wecat(cookie,amountid,poolBaseId,prizeGroupId,prizeBaseId)
|
||||||
else:
|
else:
|
||||||
print(f'获取数据失败\n{res}\n')
|
print(f'获取数据失败\n{res}\n')
|
||||||
else:
|
else:
|
||||||
print(f'获取数据失败\n{res}\n')
|
print(f'获取数据失败\n{res}\n')
|
||||||
|
|
||||||
# 微信提现
|
# 微信提现
|
||||||
def wecat(cookie,amountid,poolBaseId,prizeGroupId,prizeBaseId):
|
def wecat(cookie,amountid,poolBaseId,prizeGroupId,prizeBaseId):
|
||||||
@@ -379,6 +399,7 @@ def main():
|
|||||||
|
|
||||||
for e,cookie in enumerate(cookie_list,start=1):
|
for e,cookie in enumerate(cookie_list,start=1):
|
||||||
print(f'******开始【账号 {e}】 {get_pin(cookie)} *********\n')
|
print(f'******开始【账号 {e}】 {get_pin(cookie)} *********\n')
|
||||||
|
apDoTask(cookie)
|
||||||
happyDigHome(cookie)
|
happyDigHome(cookie)
|
||||||
spring_reward_list(cookie)
|
spring_reward_list(cookie)
|
||||||
|
|
||||||
|
|||||||
562
jd_lzdz1_customized612.js
Normal file
562
jd_lzdz1_customized612.js
Normal file
File diff suppressed because one or more lines are too long
241
jd_superBrandSign.js
Normal file
241
jd_superBrandSign.js
Normal file
File diff suppressed because one or more lines are too long
86
jd_wish.js
86
jd_wish.js
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user