Compare commits

...

3 Commits

Author SHA1 Message Date
可达鸭
4a5d0566de Update jdAlgo.js 2025-07-08 14:59:05 +08:00
可达鸭
82b010fc84 Update jd_task_newUnique.js 2025-07-08 12:56:49 +08:00
可达鸭
bd719fc1da . 2025-07-08 12:34:50 +08:00
4 changed files with 16 additions and 5 deletions

View File

@ -93,7 +93,7 @@ export default {
h5st: {
xcx: '4.9',
latest: '5.1',
encrypt: 'dd3dfcec5cddd8a9dd485cddec1dacdd4856a5f8281ab2923b2828ddec1dacdd5cddc859dd3ddc5cdde968dd3dec5cdde978',
encrypt: '5cdde968dd3d9c5cdde978dd3decec5cddd8a9dd485cddec1dacdd48ee0947df0dd052502828ec2d5cddbca8d9dd3ddd7c1dec1dacdd5cdd9899dd3dddec1dacdd5cddc859dd3ddc',
extend: {},
storage: {}
}

View File

@ -16,6 +16,9 @@ export class Main extends Template {
turn: 2,
temp: 't6',
readme: "如果没有获取到数据,可能是前面几个号黑号无法获取,请自行设置temp为可运行账号pin",
prompt: {
shuffle: `true # 随机选择两个商品进行投票,默认按照算法排序投票`
}
}
}
@ -243,11 +246,19 @@ export class Main extends Template {
}
}
if (ary.length<2) {
let ranCode = this.random(code, 2 - ary.length)
if (this.profile.shuffle) {
var ranCode = this.random(code, 2 - ary.length)
}
else {
let column = (this.column(code, '', 'skuId'))
let keys = Object.keys(column)
keys.sort()
var ranCode = [column[keys[0]], column[keys[1]]]
}
ary = [...ary, ...ranCode]
}
for (let _ of this.range(0, 1)) {
let i = code[_]
let i = ary[_]
p.log("正在投票:", i.name)
let pop = await this.curl({
'form': `functionId=newunique_popup&appid=signed_wh5&body={"channelId":"3","skuId":"${i.skuId}","roundId":"${context.roundId}"}&client=ios&clientVersion=15.0.80`,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long