mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 00:44:07 +08:00
1
This commit is contained in:
@@ -533,7 +533,7 @@ function saveTeam(_0xd519d7 = 0) {
|
|||||||
return new Promise(_0x270eca => {
|
return new Promise(_0x270eca => {
|
||||||
let _0x1a0f79 = encodeURIComponent(encodeURIComponent($.Pin));
|
let _0x1a0f79 = encodeURIComponent(encodeURIComponent($.Pin));
|
||||||
if (_0xd519d7 == 1) _0x1a0f79 = encodeURIComponent(encodeURIComponent($.Pin));
|
if (_0xd519d7 == 1) _0x1a0f79 = encodeURIComponent(encodeURIComponent($.Pin));
|
||||||
let _0x44652e = 'activityId=' + activityId + '&pin=' + _0x1a0f79 + '&pinImg=' + encodeURIComponent(encodeURIComponent($.attrTouXiang));
|
let _0x44652e = 'activityId=' + activityId + '&pin=' + _0x1a0f79 + '&pinImg=' + encodeURIComponent(encodeURIComponent($.attrTouXiang))+'&venderId='+$.userId;
|
||||||
$.post(taskPostUrl('/wxTeam/saveCaptain', _0x44652e), async (_0x767d7b, _0x17080e, _0x1070a3) => {
|
$.post(taskPostUrl('/wxTeam/saveCaptain', _0x44652e), async (_0x767d7b, _0x17080e, _0x1070a3) => {
|
||||||
try {
|
try {
|
||||||
if (_0x767d7b) {
|
if (_0x767d7b) {
|
||||||
@@ -589,7 +589,7 @@ function joinTeam(_0x5a3500 = 0) {
|
|||||||
return new Promise(_0x40dede => {
|
return new Promise(_0x40dede => {
|
||||||
let _0x5d51ce = encodeURIComponent(encodeURIComponent($.Pin));
|
let _0x5d51ce = encodeURIComponent(encodeURIComponent($.Pin));
|
||||||
if (_0x5a3500 == 1) _0x5d51ce = encodeURIComponent(encodeURIComponent($.Pin));
|
if (_0x5a3500 == 1) _0x5d51ce = encodeURIComponent(encodeURIComponent($.Pin));
|
||||||
let _0x14deba = 'activityId=' + activityId + '&signUuid=' + $.signUuid + '&pin=' + _0x5d51ce + '&pinImg=' + encodeURIComponent(encodeURIComponent($.attrTouXiang));
|
let _0x14deba = 'activityId=' + activityId + '&signUuid=' + $.signUuid + '&pin=' + _0x5d51ce + '&pinImg=' + encodeURIComponent(encodeURIComponent($.attrTouXiang))+'&venderId='+$.userId;
|
||||||
$.post(taskPostUrl('/wxTeam/saveMember', _0x14deba), async (_0x53be06, _0x5ed55f, _0x19a125) => {
|
$.post(taskPostUrl('/wxTeam/saveMember', _0x14deba), async (_0x53be06, _0x5ed55f, _0x19a125) => {
|
||||||
try {
|
try {
|
||||||
if (_0x53be06) {
|
if (_0x53be06) {
|
||||||
|
|||||||
334
jd_daily_lottery.js
Normal file
334
jd_daily_lottery.js
Normal file
File diff suppressed because one or more lines are too long
359
jd_morningSc.js
359
jd_morningSc.js
File diff suppressed because one or more lines are too long
362
jd_superBrandZII.js
Normal file
362
jd_superBrandZII.js
Normal file
File diff suppressed because one or more lines are too long
27
jd_wish.js
27
jd_wish.js
@@ -5,17 +5,14 @@
|
|||||||
===============Quantumultx===============
|
===============Quantumultx===============
|
||||||
[task_local]
|
[task_local]
|
||||||
#众筹许愿池
|
#众筹许愿池
|
||||||
40 0,2 * * * https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js, tag=众筹许愿池, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
|
40 0,11,19 * * * https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js, tag=众筹许愿池, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
|
||||||
|
|
||||||
================Loon==============
|
================Loon==============
|
||||||
[Script]
|
[Script]
|
||||||
cron "40 0,2 * * *" script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js,tag=众筹许愿池
|
cron "40 0,11,19 * * *" script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js,tag=众筹许愿池
|
||||||
|
|
||||||
===============Surge=================
|
===============Surge=================
|
||||||
众筹许愿池 = type=cron,cronexp="40 0,2 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js
|
众筹许愿池 = type=cron,cronexp="40 0,11,19 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js
|
||||||
|
|
||||||
============小火箭=========
|
============小火箭=========
|
||||||
众筹许愿池 = type=cron,script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js, cronexpr="40 0,2 * * *", timeout=3600, enable=true
|
众筹许愿池 = type=cron,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js, cronexpr="40 0,11,19 * * *", timeout=3600, enable=true
|
||||||
*/
|
*/
|
||||||
const $ = new Env('众筹许愿池');
|
const $ = new Env('众筹许愿池');
|
||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
@@ -25,8 +22,8 @@ let message = '', allMessage = '';
|
|||||||
//IOS等用户直接用NobyDa的jd cookie
|
//IOS等用户直接用NobyDa的jd cookie
|
||||||
let cookiesArr = [], cookie = '';
|
let cookiesArr = [], cookie = '';
|
||||||
const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
||||||
let appIdArr = ['1FFVQyqw','1EFRWxKuG', '1E1xZy6s'];
|
let appIdArr = ["1E1NUxq2G","1E1xZy6s","1EFRXxg","1EFRWxKuG","1FFVQyqw"];
|
||||||
let appNameArr = ['1111点心动','许愿抽好礼', 'PLUS生活特权'];
|
let appNameArr = ["空投","PLUS生活特权","1","2","3"];
|
||||||
let appId, appName;
|
let appId, appName;
|
||||||
$.shareCode = [];
|
$.shareCode = [];
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
@@ -72,7 +69,12 @@ if ($.isNode()) {
|
|||||||
if ($.isNode()) await notify.sendNotify($.name, allMessage);
|
if ($.isNode()) await notify.sendNotify($.name, allMessage);
|
||||||
$.msg($.name, '', allMessage)
|
$.msg($.name, '', allMessage)
|
||||||
}
|
}
|
||||||
let res = await getAuthorShareCode('https://gitee.com/KingRan521/JD-Scripts/raw/master/shareCodes/wish.json')
|
let res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/6dylan6/updateTeam@main/shareCodes/wish.json')
|
||||||
|
if (!res) {
|
||||||
|
$.http.get({url: 'https://cdn.jsdelivr.net/gh/6dylan6/updateTeam@main/shareCodes/wish.json'}).then((resp) => {}).catch((e) => console.log('刷新CDN异常', e));
|
||||||
|
await $.wait(1000)
|
||||||
|
res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/6dylan6/updateTeam@main/shareCodes/wish.json')
|
||||||
|
}
|
||||||
$.shareCode = [...$.shareCode, ...(res || [])]
|
$.shareCode = [...$.shareCode, ...(res || [])]
|
||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
if (cookiesArr[i]) {
|
if (cookiesArr[i]) {
|
||||||
@@ -131,6 +133,7 @@ async function jd_wish() {
|
|||||||
await interact_template_getLotteryResult()
|
await interact_template_getLotteryResult()
|
||||||
await $.wait(2000)
|
await $.wait(2000)
|
||||||
}
|
}
|
||||||
|
if (message) allMessage += `京东账号${$.index} ${$.nickName || $.UserName}\n${appName}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}`
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$.logErr(e)
|
$.logErr(e)
|
||||||
@@ -139,7 +142,6 @@ async function jd_wish() {
|
|||||||
|
|
||||||
async function healthyDay_getHomeData(type = true) {
|
async function healthyDay_getHomeData(type = true) {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
// console.log(taskUrl('healthyDay_getHomeData', { "appId": appId, "taskToken": "", "channelId": 1 }));
|
|
||||||
$.post(taskUrl('healthyDay_getHomeData', { "appId": appId, "taskToken": "", "channelId": 1 }), async (err, resp, data) => {
|
$.post(taskUrl('healthyDay_getHomeData', { "appId": appId, "taskToken": "", "channelId": 1 }), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
@@ -148,7 +150,6 @@ async function healthyDay_getHomeData(type = true) {
|
|||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
// console.log(data);
|
|
||||||
if (type) {
|
if (type) {
|
||||||
for (let key of Object.keys(data.data.result.hotTaskVos).reverse()) {
|
for (let key of Object.keys(data.data.result.hotTaskVos).reverse()) {
|
||||||
let vo = data.data.result.hotTaskVos[key]
|
let vo = data.data.result.hotTaskVos[key]
|
||||||
@@ -191,7 +192,7 @@ async function healthyDay_getHomeData(type = true) {
|
|||||||
await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "0" })
|
await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "0" })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (vo.taskType === 3) {
|
} else if (vo.taskType === 3 && vo.shoppingActivityVos) {
|
||||||
for (let key of Object.keys(vo.shoppingActivityVos)) {
|
for (let key of Object.keys(vo.shoppingActivityVos)) {
|
||||||
let shoppingActivityVos = vo.shoppingActivityVos[key]
|
let shoppingActivityVos = vo.shoppingActivityVos[key]
|
||||||
if (shoppingActivityVos.status !== 2) {
|
if (shoppingActivityVos.status !== 2) {
|
||||||
|
|||||||
@@ -1,20 +1,27 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: lxk0301 https://gitee.com/lxk0301
|
* @Author: ccwav https://github.com/ccwav/QLScript2
|
||||||
* @Date: 2020-08-19 16:12:40
|
|
||||||
* @Last Modified by: whyour
|
* sendNotify 推送通知功能 (text, desp, params , author , strsummary)
|
||||||
* @Last Modified time: 2021-5-1 15:00:54
|
* @param text 通知标题 (必要)
|
||||||
* sendNotify 推送通知功能
|
* @param desp 通知内容 (必要)
|
||||||
* @param text 通知头
|
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' } ,没啥用,只是为了兼容旧脚本保留 (非必要)
|
||||||
* @param desp 通知体
|
* @param author 通知底部作者` (非必要)
|
||||||
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' }
|
* @param strsummary 指定某些微信模板通知的预览信息,空则默认为desp (非必要)
|
||||||
* @param author 作者仓库等信息 例:`本通知 By:https://github.com/whyour/qinglong`
|
|
||||||
|
* sendNotifybyWxPucher 一对一推送通知功能 (text, desp, PtPin, author, strsummary )
|
||||||
|
* @param text 通知标题 (必要)
|
||||||
|
* @param desp 通知内容 (必要)
|
||||||
|
* @param PtPin CK的PTPIN (必要)
|
||||||
|
* @param author 通知底部作者` (非必要)
|
||||||
|
* @param strsummary 指定某些微信模板通知的预览信息,空则默认为desp (非必要)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
//详细说明参考 https://github.com/ccwav/QLScript2.
|
//详细说明参考 https://github.com/ccwav/QLScript2.
|
||||||
const querystring = require('querystring');
|
const querystring = require('querystring');
|
||||||
const exec = require('child_process').exec;
|
const exec = require('child_process').exec;
|
||||||
const $ = new Env();
|
const $ = new Env();
|
||||||
const timeout = 15000; //超时时间(单位毫秒)
|
const timeout = 15000; //超时时间(单位毫秒)
|
||||||
console.log("加载sendNotify,当前版本: 20220722");
|
console.log("加载sendNotify,当前版本: 20220723");
|
||||||
// =======================================go-cqhttp通知设置区域===========================================
|
// =======================================go-cqhttp通知设置区域===========================================
|
||||||
//gobot_url 填写请求地址http://127.0.0.1/send_private_msg
|
//gobot_url 填写请求地址http://127.0.0.1/send_private_msg
|
||||||
//gobot_token 填写在go-cqhttp文件设置的访问密钥
|
//gobot_token 填写在go-cqhttp文件设置的访问密钥
|
||||||
@@ -111,15 +118,6 @@ let WP_UIDS_ONE = "";
|
|||||||
let GOTIFY_URL = '';
|
let GOTIFY_URL = '';
|
||||||
let GOTIFY_TOKEN = '';
|
let GOTIFY_TOKEN = '';
|
||||||
let GOTIFY_PRIORITY = 0;
|
let GOTIFY_PRIORITY = 0;
|
||||||
|
|
||||||
/**
|
|
||||||
* sendNotify 推送通知功能
|
|
||||||
* @param text 通知头
|
|
||||||
* @param desp 通知体
|
|
||||||
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' }
|
|
||||||
* @param author 作者仓库等信息 例:`本通知 By:https://github.com/whyour/qinglong`
|
|
||||||
* @returns {Promise<unknown>}
|
|
||||||
*/
|
|
||||||
let PushErrorTime = 0;
|
let PushErrorTime = 0;
|
||||||
let strTitle = "";
|
let strTitle = "";
|
||||||
let ShowRemarkType = "1";
|
let ShowRemarkType = "1";
|
||||||
@@ -569,11 +567,22 @@ async function sendNotify(text, desp, params = {}, author = '\n\n本通知 By cc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (desp) {
|
||||||
|
for (lncount = 2; lncount < 20; lncount++) {
|
||||||
//console.log("UseGroup2 :"+UseGroup2);
|
if (process.env["NOTIFY_INCLUDE_TEXT" + lncount]) {
|
||||||
//console.log("UseGroup3 :"+UseGroup3);
|
Notify_IncludeText = process.env["NOTIFY_INCLUDE_TEXT" + lncount].split('&');
|
||||||
|
if (Notify_IncludeText.length > 0) {
|
||||||
|
for (var Templ in Notify_IncludeText) {
|
||||||
|
if (desp.indexOf(Notify_IncludeText[Templ]) != -1) {
|
||||||
|
console.log("检测内容到内容存在组别推送的关键字(" + Notify_IncludeText[Templ] + "),将推送到组" + lncount + "...");
|
||||||
|
UseGroupNotify = lncount;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (UseGroupNotify == 1)
|
if (UseGroupNotify == 1)
|
||||||
UseGroupNotify = "";
|
UseGroupNotify = "";
|
||||||
|
|
||||||
@@ -1352,7 +1361,7 @@ function tgBotNotify(text, desp) {
|
|||||||
} else {
|
} else {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
if (data.ok) {
|
if (data.ok) {
|
||||||
console.log('Telegram发送通知消息成功<EFBFBD>。\n')
|
console.log('Telegram发送通知消息成功🎉\n')
|
||||||
} else if (data.error_code === 400) {
|
} else if (data.error_code === 400) {
|
||||||
console.log('请主动给bot发送一条消息并检查接收用户ID是否正确。\n')
|
console.log('请主动给bot发送一条消息并检查接收用户ID是否正确。\n')
|
||||||
} else if (data.error_code === 401) {
|
} else if (data.error_code === 401) {
|
||||||
|
|||||||
Reference in New Issue
Block a user