This commit is contained in:
Faker 2024-07-28 00:58:58 +08:00
parent 37c6a5dc0a
commit 7e2df848a3
6 changed files with 24 additions and 39 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

13
jd_djggl_draw.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,7 @@ $.cookiesArr = [];
$.innerKeyWords = ["幼儿园", "教程", "英语", "辅导", "培训", "孩子", "小学", "成人用品", "套套", "情趣", "自慰", "阳具", "飞机杯", "男士用品", "女士用品", "内衣", "高潮", "避孕", "乳腺", "肛塞", "肛门", "宝宝", "芭比", "娃娃", "男用", "女用", "神油", "足力健", "老年", "老人", "宠物", "饲料", "丝袜", "黑丝", "磨脚", "脚皮", "除臭", "性感", "内裤", "跳蛋", "安全套", "龟头", "阴道", "阴部", "手机卡", "电话卡", "流量卡", "习题", "试卷",]; $.innerKeyWords = ["幼儿园", "教程", "英语", "辅导", "培训", "孩子", "小学", "成人用品", "套套", "情趣", "自慰", "阳具", "飞机杯", "男士用品", "女士用品", "内衣", "高潮", "避孕", "乳腺", "肛塞", "肛门", "宝宝", "芭比", "娃娃", "男用", "女用", "神油", "足力健", "老年", "老人", "宠物", "饲料", "丝袜", "黑丝", "磨脚", "脚皮", "除臭", "性感", "内裤", "跳蛋", "安全套", "龟头", "阴道", "阴部", "手机卡", "电话卡", "流量卡", "习题", "试卷",];
//下面很重要,遇到问题请把下面注释看一遍再来问 //下面很重要,遇到问题请把下面注释看一遍再来问
let args_xh = { let args_xh = {
h5st_server: process.env.H5ST_SERVER || 'https://jd1.zhx47.xyz',
/* /*
* 控制一次最多跑几个号默认10个 * 控制一次最多跑几个号默认10个
*/ */
@ -283,7 +284,7 @@ async function try_apply(title, activityId) {
body: { body: {
"activityId": Number(activityId), "activityId": Number(activityId),
} }
}, '20240616220153007;z5mm6z6ny9tgiz62;35fa0;tk03wbfcb1c2841lMisyeDJkVDljOEydj-ckiCHjIYSJ1W7xoMh0tq-jHSpwPgeelBG4C-99GSgmBbeb960pVPkbRRDb;b9425397f84d9562eb929109a424b25050f5d16849dd8187530792a36f092a5e;4.7;1718546513007;UOm5YmIikru95F6Y2j_aOPloesE0LYNBvUyh1hyaUIEa2WGNlLIeoVRcsMZcqWgWTFnOjkwc0Wfsw34nc-n9LANGlLShDUmeWeNTVNWwHWjEND1qe6qHqLYy0XHvOCOii9WbK167wpxvZ7sTBf76L627d2I2lmcmSx5t-6Pt51XG-yYCin67tQis5pE7qPpNgw0omdQtBapqp0mhA4VKFTIPQeLwuj4m4hNfXrS27fXA45dct9R-umfCHpCwN3M6IJtsi82_J7zHO0GM4sO5aSrYqaojrElDcxdbe_mKEGU7xKTMSEQR3EgqiB3JzxggCShAb1gPplWROuBzocQkrL3rpnz3FODrayk0QdOvSsXuaVHTn1DhnMleaN-6lDzlBLKzhuS0aea40k6Z2F1zEONM88GH6ptzhVQpiVLWRBbxUUGgw5S-Sid8dk9mJ3j46ekXRsHabaG8rl7KlrhCth7O') }, '20240724231727551;5mztiyg695z5tnm6;35fa0;tk03w20f41f0918naszDbfskhrgUzcfDumKXku5INupjsrOmCl3KKFmd6mRrkl8crZs_xiqcLE7QnvTEvit6NtsqtRZb;1bb3c8d4b832a5b112ba2a92a9255c07;4.7;1721834247551;Vy-3NMTDOXRhMCodDcpucpzC7v3nrymvZYGhifqZ5A68pfq8DdjxOFvMsFXTNo0rVHtBuECR-veFVV_RChUxCKE7X9bTj9LpiWUgE57PD0X8CPNuEBBlFUGWWGy5--qJvv9lTq85C1lvRvWcw9XUX3licufxeSRk5GVPL9mqPnFvjZb4UZjR5tFXDRNCs0WAj2iA87Ea_9ks_jbKSnX0ioFoQCfCG_rIEUwGIWRUvMLDywz7Q3wco5Y8UmZGDr11fINBkm4VCIfjX6fgcvlxUnWj1XYEXYXNIcACPjiR5idZTTqzs3JbX3LKU0RZQTxvXGwa2PTGteTFFFOs0V2_LuV9ohPmvZTTozg15eKRlFCg20YzbnU3JFKG76ppYw3fL1GcbHjUTPU9tuyxbqMBwd0u81MI1sPHONuFPWpxh1baggE7nDk8PeheJO0dl8zjLad9Prk3hGJ0DQIeqffFGvzEemLTD52YgeDqWQHLXbk3;38a6e59a66671d58fdef05a21e707505')
setBaseCookie(); setBaseCookie();
const joylog = await $.smashUtils.sign({ const joylog = await $.smashUtils.sign({
@ -297,7 +298,7 @@ async function try_apply(title, activityId) {
headers: { headers: {
"content-type": "application/x-www-form-urlencoded", "content-type": "application/x-www-form-urlencoded",
origin: "https://pro.m.jd.com", origin: "https://pro.m.jd.com",
Referer: "https://pro.m.jd.com/mall/active/3mpGVQDhvLsMvKfZZumWPQyWt83L/index.html?activityId=501834423&sku=65263095978", Referer: "https://pro.m.jd.com/mall/active/3mpGVQDhvLsMvKfZZumWPQyWt83L/index.html",
"User-Agent": $.userAgent, "User-Agent": $.userAgent,
"x-referer-page": "https://pro.m.jd.com/mall/active/3mpGVQDhvLsMvKfZZumWPQyWt83L/index.html" "x-referer-page": "https://pro.m.jd.com/mall/active/3mpGVQDhvLsMvKfZZumWPQyWt83L/index.html"
}, },
@ -503,7 +504,7 @@ async function try_feedsList(tabId, page) {
client: 'outer', client: 'outer',
}, },
}, },
'20240616184606839;z55tttgm69iy5gt3;35fa0;tk03w73961a5c41lMngyKzN4M3NZ9v6YiMHcUZzf-P--kImKPJxWOBADZAdB124IKB0-tMni0SNFkS-rY6y9NCO0kyT7;686da69d2b902071260b372ec783208bd23e2891bbe8d092fa88322f9d4af96c;4.7;1718534766839;UOGVDoANEFUxNUCVdiY9pn3sfPETGURG3lMUAqYwv2f3puLbYE75Mz4VKBAHMO4-qgP543iYlyjcq4SLHWq3kC4dKsNKK2LuLn_wCRQ-NRsgMdHsimMATwP_Kst5YN3fzVHakZmNBTqAAyt8S-19if5CXSlcYwOsVzmu7vGrSB3kHSfHw3e3Yl05nVUm_4l_VY2omdQtBapqp0mhA4VKFTIPQeLwuj4m4hNfXrS27fXA45dct9R-umfCHpCwN3M6IJtsi82_J7zHO0GM4sO5aSrYqaojrElDcxdbe_mKEGU7xKTMSEQR3EgqiB3JzxggCShAb1gPplWROuBzocQkrL3rpnz3FODrayk0QdOvSsXuaVHTn1DhnMleaN-6lDzlBLKzhuS0aea40k6Z2F1zEONM88GH6ptzhVQpiVLWRBbxUUGgw5S-Sid8dk9mJ3j46ekXRsHabaG8rl7KlrhCth7O' '20240724231542475;tiz96gyymmmynn59;35fa0;tk03wa99e1c0241lMXgzeDF3dW9zObZchsHd7MW70GHq6aFjONZFrugCp0TwgLsETgOWQ0oLtcSNy6lYXgXLt6X7VD7I;8ee3beb4a5b9bb02d0ad5ed19ba1be6f;4.7;1721834142475;VGInRgLX8wqehuFHHURclRFJu_naXR7GtKnR3UvOAF9QviA7QNK29c3Jz6uuL5c40uCK9E4hr08VtpRpmeVEhVtJdhi7WlAhOQ_oNvJkhthVs2TZEo3LbRFdHrdaH_L6udnuK8henv76kw6V43qT423RvvY41nz504Iuai8q9uFWycGaK-7mUFBxzn37TjWOg2iA87Ea_9ks_jbKSnX0ioFoQCfCG_rIEUwGIWRUvMLDywz7Q3wco5Y8UmZGDr11fINBkm4VCIfjX6fgcvlxUnWj1XYEXYXNIcACPjiR5idZTTqzs3JbX3LKU0RZQTxvXGwa2PTGteTFFFOs0V2_LuV9ohPmvZTTozg15eKRlFCg20YzbnU3JFKG76ppYw3fL1GcbHjUTPU9tuyxbqMBwd0u81MI1sPHONuFPWpxh1baggE7nDk8PeheJO0dl8zjLad9Prk3hGJ0DQIeqffFGvzEemLTD52YgeDqWQHLXbk3;00d4b347d0191476aa87a3f0ae6f8104'
) )
try { try {
@ -515,7 +516,8 @@ async function try_feedsList(tabId, page) {
origin: "https://prodev.m.jd.com", origin: "https://prodev.m.jd.com",
Referer: "https://prodev.m.jd.com/mall/active/3C751WNneAUaZ8Lw8xYN7cbSE8gm/index.html", Referer: "https://prodev.m.jd.com/mall/active/3C751WNneAUaZ8Lw8xYN7cbSE8gm/index.html",
"User-Agent": $.userAgent, "User-Agent": $.userAgent,
"x-referer-page": "https://prodev.m.jd.com/mall/active/3C751WNneAUaZ8Lw8xYN7cbSE8gm/index.html" "x-referer-page": "https://prodev.m.jd.com/mall/active/3C751WNneAUaZ8Lw8xYN7cbSE8gm/index.html",
'x-rp-client': 'h5_1.0.0'
}, },
data: sign.qs data: sign.qs
}); });
@ -630,10 +632,10 @@ async function try_feedsList(tabId, page) {
async function h5stSign(body, h5st) { async function h5stSign(body, h5st) {
const options = { const options = {
method: 'POST', method: 'POST',
url: 'https://jd.zhx47.xyz/h5st', url: `${args_xh.h5st_server}/h5st`,
headers: {'content-type': 'application/json'}, headers: {'content-type': 'application/json'},
data: { data: {
version: '4.7.3', version: '4.7.4',
pin: $.UserName, pin: $.UserName,
ua: $.userAgent, ua: $.userAgent,
body, body,

View File

@ -1,10 +1,8 @@
const CryptoJS = require("crypto-js"); const CryptoJS = require("crypto-js");
const {JSDOM,ResourceLoader} = require("jsdom"); const {JSDOM,ResourceLoader} = require("jsdom");
const {CookieJar, Cookie} = require("tough-cookie"); const {CookieJar} = require("tough-cookie");
const axios = require("axios"); const axios = require("axios");
const {HttpCookieAgent, HttpsCookieAgent} = require('http-cookie-agent/http') const {HttpCookieAgent, HttpsCookieAgent} = require('http-cookie-agent/http')
const {setBaseCookie} = require("./baseCookie");
const crc32 = require('crc').crc32; const crc32 = require('crc').crc32;