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