mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 15:40:42 +08:00
Compare commits
3 Commits
5a7e64d0a9
...
4a5d0566de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a5d0566de | ||
|
|
82b010fc84 | ||
|
|
bd719fc1da |
@ -93,7 +93,7 @@ export default {
|
||||
h5st: {
|
||||
xcx: '4.9',
|
||||
latest: '5.1',
|
||||
encrypt: 'dd3dfcec5cddd8a9dd485cddec1dacdd4856a5f8281ab2923b2828ddec1dacdd5cddc859dd3ddc5cdde968dd3dec5cdde978',
|
||||
encrypt: '5cdde968dd3d9c5cdde978dd3decec5cddd8a9dd485cddec1dacdd48ee0947df0dd052502828ec2d5cddbca8d9dd3ddd7c1dec1dacdd5cdd9899dd3dddec1dacdd5cddc859dd3ddc',
|
||||
extend: {},
|
||||
storage: {}
|
||||
}
|
||||
|
||||
@ -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
Loading…
Reference in New Issue
Block a user