Merge branch 'master' of https://lxk0301@gitee.com/lxk0301/jd_scripts.git
This commit is contained in:
1
Env.min.js
vendored
1
Env.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
* @Author: lxk0301 https://gitee.com/lxk0301
|
||||
* @Date: 2020-11-01 16:25:41
|
||||
* @Last Modified by: lxk0301
|
||||
* @Last Modified time: 2021-04-20 15:25:41
|
||||
* @Last Modified time: 2021-04-21 15:25:41
|
||||
*/
|
||||
/*
|
||||
京东资产变动通知脚本:https://gitee.com/lxk0301/jd_scripts/raw/master/jd_bean_change.js
|
||||
@@ -324,10 +324,10 @@ function redPacket() {
|
||||
$.jxRed = $.jxRed.toFixed(2)
|
||||
$.jsRed = $.jsRed.toFixed(2)
|
||||
$.jdRed = $.jdRed.toFixed(2)
|
||||
$.jdhRed = $.jdhRed.toFixed(2)
|
||||
$.balance = data.balance
|
||||
$.expiredBalance = data.expiredBalance || 0;
|
||||
$.message += `\n当前总红包:${$.balance}(今日总过期${($.jxRedExpire + $.jsRedExpire + $.jdRedExpire).toFixed(2)})元 🧧\n京喜红包:${$.jxRed}(今日将过期${$.jxRedExpire.toFixed(2)})元 🧧\n极速版红包:${$.jsRed}(今日将过期${$.jsRedExpire.toFixed(2)})元 🧧\n京东红包:${$.jdRed}(今日将过期${$.jdRedExpire.toFixed(2)})元 🧧\n健康红包:${$.jdhRed}(今日将过期${$.jdhRedExpire.toFixed(2)})元 🧧`;
|
||||
// if ($.expiredBalance > 0) $.message += `\n今明二日过期:${$.expiredBalance}元红包🧧`;
|
||||
$.expiredBalance = ($.jxRedExpire + $.jsRedExpire + $.jdRedExpire).toFixed(2)
|
||||
$.message += `\n当前总红包:${$.balance}(今日总过期${$.expiredBalance})元 🧧\n京喜红包:${$.jxRed}(今日将过期${$.jxRedExpire.toFixed(2)})元 🧧\n极速版红包:${$.jsRed}(今日将过期${$.jsRedExpire.toFixed(2)})元 🧧\n京东红包:${$.jdRed}(今日将过期${$.jdRedExpire.toFixed(2)})元 🧧\n健康红包:${$.jdhRed}(今日将过期${$.jdhRedExpire.toFixed(2)})元 🧧`;
|
||||
} else {
|
||||
console.log(`京东服务器返回空数据`)
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
京东京喜工厂
|
||||
更新时间:2021-4-9
|
||||
更新时间:2021-4-21
|
||||
修复做任务、收集电力出现火爆,不能完成任务,重新计算h5st验证
|
||||
参考自 :https://www.orzlee.com/web-development/2021/03/03/lxk0301-jingdong-signin-scriptjingxi-factory-solves-the-problem-of-unable-to-signin.html
|
||||
活动入口:京东APP-游戏与互动-查看更多-京喜工厂
|
||||
@@ -1256,15 +1256,17 @@ async function exchangeProNotify() {
|
||||
if (exchangeEndTime) {
|
||||
//比如兑换(超时)截止时间是2020/12/8 09:20:04,现在时间是2020/12/6
|
||||
if (nowTimes < exchangeEndTime) {
|
||||
// 一:在兑换超时这一天(2020/12/8 09:20:04)的前3小时内通知
|
||||
// 一:在兑换超时这一天(2020/12/8 09:20:04)的前3小时内通知(每次运行都通知)
|
||||
let flag = true;
|
||||
if ((exchangeEndTime - nowTimes.getTime()) <= 3600000 * 3) {
|
||||
let expiredTime = parseInt(((exchangeEndTime - nowTimes.getTime()) / (60*60*1000)).toFixed(1))
|
||||
let expiredTime = parseFloat(((exchangeEndTime - nowTimes.getTime()) / (60*60*1000)).toFixed(1))
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}${expiredTime}小时后兑换超时\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, {'open-url': jxOpenUrl, 'media-url': $.picture})
|
||||
// if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}${(exchangeEndTime - nowTimes) / 60*60*1000}分钟后兑换超时\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, { url: jxOpenUrl })
|
||||
if ($.isNode()) allMessage += `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}${expiredTime}小时后兑换超时\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换${$.index !== cookiesArr.length ? '\n\n' : ''}`
|
||||
flag = false;
|
||||
}
|
||||
//二:在可兑换的时候,一天通知2次(2020/12/6 10,11点,以及在2020/12/7 10,11点各通知一次)
|
||||
if (nowHours === (exchangeEndHours + 1) || nowHours === (exchangeEndHours + 2)) {
|
||||
//二:在可兑换的时候,4小时通知一次
|
||||
if (nowHours % 4 === 0 && flag) {
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}已可兑换\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, {'open-url': jxOpenUrl, 'media-url': $.picture})
|
||||
// if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}已可兑换\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, { url: jxOpenUrl })
|
||||
if ($.isNode()) allMessage += `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}已可兑换\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换${$.index !== cookiesArr.length ? '\n\n' : ''}`
|
||||
|
@@ -2,7 +2,6 @@
|
||||
超级直播间红包雨
|
||||
下一场超级直播间时间:04月28日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3932303
|
||||
下一场超级直播间时间:04月23日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3934999
|
||||
下一场超级直播间时间:04月20日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3913828
|
||||
脚本兼容: Quantumult X, Surge, Loon, JSBox, Node.js
|
||||
==============Quantumult X==============
|
||||
[task_local]
|
||||
@@ -20,12 +19,8 @@ cron "0,30,31 20-23/1 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/ra
|
||||
超级直播间红包雨 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_live_redrain.js, cronexpr="0,30,31 20-23/1 * * *", timeout=3600, enable=true
|
||||
*/
|
||||
const $ = new Env('超级直播间红包雨');
|
||||
let allMessage = '', id = 'RRA4RhWMc159kA62qLbaEa88evE7owb';
|
||||
let allMessage = '', id = 'RRAAYPHu6s5pWzYMqmfNygvvgJTKdq';
|
||||
let bodyList = {
|
||||
"20": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1618812732092&sign=8318f3a94b1558bc17244912dd2bff69&sv=101",
|
||||
"body": "body=%7B%22liveId%22%3A%223913828%22%7D"
|
||||
},
|
||||
"23": {
|
||||
"url": "https://api.m.jd.com/client.action?functionId=liveActivityV946&uuid=8888888&client=apple&clientVersion=9.4.1&st=1618812729053&sign=c083fc8440496d9ed52007210a70b481&sv=100",
|
||||
"body": "body=%7B%22liveId%22%3A%223934999%22%7D"
|
||||
@@ -61,8 +56,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
return;
|
||||
}
|
||||
console.log('下一场超级直播间时间:04月28日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3932303\n' +
|
||||
'下一场超级直播间时间:04月23日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3934999\n' +
|
||||
'下一场超级直播间时间:04月20日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3913828')
|
||||
'下一场超级直播间时间:04月23日 20:00,直播间地址:https://h5.m.jd.com/dev/3pbY8ZuCx4ML99uttZKLHC2QcAMn/live.html?id=3934999')
|
||||
await getRedRain();
|
||||
|
||||
let nowTs = new Date().getTime()
|
||||
|
@@ -2,6 +2,7 @@
|
||||
京东天天加速链接:https://gitee.com/lxk0301/jd_scripts/raw/master/jd_speed.js
|
||||
更新时间:2020-12-25
|
||||
活动入口:京东APP我的-更多工具-天天加速
|
||||
活动地址:https://h5.m.jd.com/babelDiy/Zeus/6yCQo2eDJPbyPXrC3eMCtMWZ9ey/index.html
|
||||
支持京东双账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
每天4京豆,再小的苍蝇也是肉
|
||||
|
@@ -114,7 +114,8 @@
|
||||
{
|
||||
"id": "jd_fruit_inviter",
|
||||
"name": "东东农场好友邀请码 列表",
|
||||
"val": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"val": "",
|
||||
"placeholder": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 8,
|
||||
@@ -149,7 +150,8 @@
|
||||
{
|
||||
"id": "jd_pet_inviter",
|
||||
"name": "东东萌宠好友邀请码 列表",
|
||||
"val": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"val": "",
|
||||
"placeholder": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 8,
|
||||
@@ -184,7 +186,8 @@
|
||||
{
|
||||
"id": "jd_plantbean_inviter",
|
||||
"name": "京东种豆好友邀请码 列表",
|
||||
"val": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"val": "",
|
||||
"placeholder": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 8,
|
||||
@@ -565,53 +568,6 @@
|
||||
"https://raw.githubusercontent.com/58xinian/icon/master/jxc.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "lxk0301Webhook",
|
||||
"name": "Webhook",
|
||||
"keys": [
|
||||
"ACTIONS_TRIGGER_TOKEN",
|
||||
"githubUser",
|
||||
"repo",
|
||||
"TRIGGER_KEYWORDS"
|
||||
],
|
||||
"settings": [
|
||||
{
|
||||
"id": "ACTIONS_TRIGGER_TOKEN",
|
||||
"name": "github token",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": "申请教程:https://www.jianshu.com/p/bb82b3ad1d11 记得勾选repo权限就行"
|
||||
},
|
||||
{
|
||||
"id": "githubUser",
|
||||
"name": "github 用户名",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": "例如:lxk0301"
|
||||
},
|
||||
{
|
||||
"id": "repo",
|
||||
"name": "仓库名称",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": "例如:scripts"
|
||||
},
|
||||
{
|
||||
"id": "TRIGGER_KEYWORDS",
|
||||
"name": "触发关键词",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": ".github/workflows/路径里面yml文件repository_dispatch项目的types值,例如jd_fruit.yml里面的值为fruit,多个使用英文逗号','隔开"
|
||||
}
|
||||
],
|
||||
"author": "@lxk0301",
|
||||
"repo": "https://gitee.com/lxk0301/jd_scripts/tree/master",
|
||||
"script": "https://gitee.com/lxk0301/jd_scripts/raw/master/backUp/webhook.js",
|
||||
"icons": [
|
||||
"https://raw.githubusercontent.com/58xinian/icon/master/webhooks_mini.png",
|
||||
"https://raw.githubusercontent.com/58xinian/icon/master/webhooks.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "xmSports",
|
||||
"name": "小米运动",
|
||||
@@ -688,6 +644,7 @@
|
||||
"id": "jd_jxFactory",
|
||||
"name": "京喜工厂好友邀请码 列表",
|
||||
"val": "",
|
||||
"placeholder": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 8,
|
||||
@@ -716,6 +673,7 @@
|
||||
"id": "jd_jxCFD",
|
||||
"name": "京喜财富岛好友邀请码 列表",
|
||||
"val": "",
|
||||
"placeholder": "账号1的好友1邀请码@账号1的好友2邀请码\n\n账号2的好友1邀请码@账号2的好友2邀请码",
|
||||
"type": "textarea",
|
||||
"autoGrow": true,
|
||||
"rows": 8,
|
||||
|
@@ -52,12 +52,12 @@ inputs:
|
||||
cronExpression: "0 10 0 * * * *"
|
||||
enable: true
|
||||
argument: jd_redPacket&jd_shop&jd_unsubscribe&jd_lotteryMachine&jd_car&jd_ms
|
||||
- timer: #京东天天加速 #天天提鹅 #5G超级盲盒
|
||||
- timer: #天天提鹅 #5G超级盲盒
|
||||
parameters:
|
||||
name: speed_dailyegg_mohe
|
||||
name: dailyegg_mohe
|
||||
cronExpression: "0 8 */3 * * * *"
|
||||
enable: true
|
||||
argument: jd_speed&jd_daily_egg&jd_mohe
|
||||
argument: jd_daily_egg&jd_mohe
|
||||
- timer: #东东超市
|
||||
parameters:
|
||||
name: superMarket
|
||||
|
Reference in New Issue
Block a user