mirror of
https://github.com/shufflewzc/faker3.git
synced 2026-04-04 00:44:07 +08:00
sync
This commit is contained in:
@@ -45,7 +45,7 @@ function SetShareCodesEnv(nameConfig = "", envName = "") {
|
||||
let rawCodeConfig = {}
|
||||
|
||||
// 读取互助码
|
||||
shareCodeLogPath = `${process.env.QL_DIR}/log/.ShareCode/${nameConfig}.log`
|
||||
let shareCodeLogPath = `${process.env.QL_DIR}/log/.ShareCode/${nameConfig}.log`
|
||||
let fs = require('fs')
|
||||
if (fs.existsSync(shareCodeLogPath)) {
|
||||
// 因为faker2目前没有自带ini,改用已有的dotenv来解析
|
||||
@@ -59,7 +59,7 @@ function SetShareCodesEnv(nameConfig = "", envName = "") {
|
||||
}
|
||||
|
||||
// 解析每个用户的互助码
|
||||
codes = {}
|
||||
let codes = {}
|
||||
Object.keys(rawCodeConfig).forEach(function (key) {
|
||||
if (key.startsWith(`My${nameConfig}`)) {
|
||||
codes[key] = rawCodeConfig[key]
|
||||
@@ -98,4 +98,4 @@ if (nameConfig && envName) {
|
||||
SetShareCodesEnv(nameConfig, envName)
|
||||
} else {
|
||||
console.debug(`OKYYDS 友情提示:您的脚本正常运行中`)
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
536
jd_lzdz1_customized3.js
Normal file
536
jd_lzdz1_customized3.js
Normal file
File diff suppressed because one or more lines are too long
527
jd_lzdz1_customized5.js
Normal file
527
jd_lzdz1_customized5.js
Normal file
File diff suppressed because one or more lines are too long
178
jd_speed_10_4.js
Normal file
178
jd_speed_10_4.js
Normal file
File diff suppressed because one or more lines are too long
178
jd_speed_19_6.js
Normal file
178
jd_speed_19_6.js
Normal file
File diff suppressed because one or more lines are too long
178
jd_speed_29_8.js
Normal file
178
jd_speed_29_8.js
Normal file
File diff suppressed because one or more lines are too long
178
jd_speed_5_2.js
Normal file
178
jd_speed_5_2.js
Normal file
File diff suppressed because one or more lines are too long
@@ -25,8 +25,8 @@ let message = '', allMessage = '';
|
||||
//IOS等用户直接用NobyDa的jd cookie
|
||||
let cookiesArr = [], cookie = '';
|
||||
const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
||||
let appIdArr = ['1EFRQwA','1FFVQyqw','1E1xZy6s'];
|
||||
let appNameArr = ['疯狂砸金蛋','1111点心动','PLUS生活特权'];
|
||||
let appIdArr = ['1EFdRwqyF','1EFZWxKqP','1FFVQyqw','1EFRQwA','1EFRWxKuG', '1E1xZy6s'];
|
||||
let appNameArr = ['春尚','新品来袭','1111点心动','疯狂砸金蛋','许愿抽好礼', 'PLUS生活特权'];
|
||||
let appId, appName;
|
||||
$.shareCode = [];
|
||||
if ($.isNode()) {
|
||||
|
||||
29
jx_sign.js
29
jx_sign.js
@@ -201,10 +201,13 @@ async function main(help = true) {
|
||||
|
||||
// 查询信息
|
||||
function signhb(type = 1) {
|
||||
let body = '';
|
||||
if ($.signhb_source === '5') body = `type=0&signhb_source=${$.signhb_source}&smp=&ispp=1&tk=`
|
||||
let functionId = 'signhb/query', body = '';
|
||||
if ($.signhb_source === '5') {
|
||||
functionId = 'signhb/query_jxpp'
|
||||
body = `type=0&signhb_source=${$.signhb_source}&smp=&ispp=1&tk=`
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
$.get(taskUrl("signhb/query", body), async (err, resp, data) => {
|
||||
$.get(taskUrl(functionId, body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(JSON.stringify(err));
|
||||
@@ -285,8 +288,16 @@ function signhb(type = 1) {
|
||||
|
||||
// 签到 助力
|
||||
function helpSignhb(smp = '') {
|
||||
let functionId, body;
|
||||
if ($.signhb_source === '5') {
|
||||
functionId = 'signhb/query_jxpp'
|
||||
body = `type=1&signhb_source=${$.signhb_source}&smp=&ispp=1&tk=`
|
||||
} else {
|
||||
functionId = 'signhb/query'
|
||||
body = `type=1&signhb_source=${$.signhb_source}&smp=${smp}&ispp=0&tk=`
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
$.get(taskUrl("signhb/query", `type=1&signhb_source=${$.signhb_source}&smp=${smp}&ispp=1&tk=`), async (err, resp, data) => {
|
||||
$.get(taskUrl(functionId, body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(JSON.stringify(err))
|
||||
@@ -319,14 +330,16 @@ function helpSignhb(smp = '') {
|
||||
|
||||
// 任务
|
||||
function dotask(task) {
|
||||
let body;
|
||||
let functionId, body;
|
||||
if ($.signhb_source === '5') {
|
||||
functionId = 'signhb/dotask_jxpp'
|
||||
body = `task=${task}&signhb_source=${$.signhb_source}&ispp=1&sqactive=${$.sqactive}&tk=`
|
||||
} else {
|
||||
body = `task=${task}&signhb_source=${$.signhb_source}&ispp=1&tk=`
|
||||
functionId = 'signhb/dotask'
|
||||
body = `task=${task}&signhb_source=${$.signhb_source}&ispp=0&sqactive=&tk=`
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
$.get(taskUrl("signhb/dotask", body), async (err, resp, data) => {
|
||||
$.get(taskUrl(functionId, body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(JSON.stringify(err));
|
||||
@@ -357,7 +370,7 @@ function bxdraw() {
|
||||
if ($.signhb_source === '5') {
|
||||
body = `ispp=1&sqactive=${$.sqactive}&tk=`
|
||||
} else {
|
||||
body = `ispp=1&tk=`
|
||||
body = `ispp=0&sqactive=&tk=`
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
$.get(taskUrl("signhb/bxdraw", body), async (err, resp, data) => {
|
||||
|
||||
Reference in New Issue
Block a user