mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
fix
This commit is contained in:
parent
55214695f9
commit
e82d27b27c
@ -47,62 +47,65 @@ async function main() {
|
|||||||
$.code = '0'
|
$.code = '0'
|
||||||
await subjectChallengeMain('recommend')
|
await subjectChallengeMain('recommend')
|
||||||
// console.log($.listData)
|
// console.log($.listData)
|
||||||
for (const vo of $.listData) {
|
if ($.listData) {
|
||||||
console.log(vo.subjectTitle+" "+vo.taskMsg)
|
for (const vo of $.listData) {
|
||||||
let contentList = await task('channelBff_querySubject', { "page": 1, "pageSize": "15", "scene": "", "subjectId": vo.subjectId, "tabId": "-1", "tabType": "2", "topContentId": "", "topContents": "" })
|
console.log(vo.subjectTitle+" "+vo.taskMsg)
|
||||||
if (contentList.result.subjectVo.contentList) {
|
let contentList = await task('channelBff_querySubject', { "page": 1, "pageSize": "15", "scene": "", "subjectId": vo.subjectId, "tabId": "-1", "tabType": "2", "topContentId": "", "topContents": "" })
|
||||||
for (const v of contentList.result.subjectVo.contentList) {
|
if (contentList.result.subjectVo.contentList) {
|
||||||
// console.log(v)
|
for (const v of contentList.result.subjectVo.contentList) {
|
||||||
let rewardsInfo = await task('subject_interactive_done', {"contentId":v.contentId,"subjectId":vo.subjectId})
|
// console.log(v)
|
||||||
if (rewardsInfo) {
|
let rewardsInfo = await task('subject_interactive_done', {"contentId":v.contentId,"subjectId":vo.subjectId})
|
||||||
console.log(rewardsInfo.message)
|
if (rewardsInfo) {
|
||||||
if (rewardsInfo.data) {
|
console.log(rewardsInfo.message)
|
||||||
console.log(rewardsInfo.data)
|
if (rewardsInfo.data) {
|
||||||
|
console.log(rewardsInfo.data)
|
||||||
|
}
|
||||||
|
$.code = rewardsInfo.code
|
||||||
|
}
|
||||||
|
await $.wait(2000);
|
||||||
|
if ($.code === '202') {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
$.code = rewardsInfo.code
|
|
||||||
}
|
|
||||||
await $.wait(2000);
|
|
||||||
if ($.code === '202') {
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if ($.code === '202') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($.code === '202') {
|
|
||||||
return
|
$.code = '0'
|
||||||
|
await subjectChallengeMain('joined')
|
||||||
|
// console.log($.listData)
|
||||||
|
for (const vo of $.listData) {
|
||||||
|
console.log(vo.subjectTitle+" "+vo.taskMsg)
|
||||||
|
let contentList = await task('channelBff_querySubject', { "page": 1, "pageSize": "15", "scene": "", "subjectId": vo.subjectId, "tabId": "-1", "tabType": "2", "topContentId": "", "topContents": "" })
|
||||||
|
if (contentList.result.subjectVo.contentList) {
|
||||||
|
for (const v of contentList.result.subjectVo.contentList) {
|
||||||
|
// console.log(v)
|
||||||
|
let rewardsInfo = await task('subject_interactive_done', {"contentId":v.contentId,"subjectId":vo.subjectId})
|
||||||
|
if (rewardsInfo) {
|
||||||
|
console.log(rewardsInfo.message)
|
||||||
|
if (rewardsInfo.data) {
|
||||||
|
console.log(rewardsInfo.data)
|
||||||
|
}
|
||||||
|
$.code = rewardsInfo.code
|
||||||
|
}
|
||||||
|
await $.wait(2000);
|
||||||
|
if ($.code === '202') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($.code === '202') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$.code = '0'
|
|
||||||
await subjectChallengeMain('joined')
|
|
||||||
// console.log($.listData)
|
|
||||||
for (const vo of $.listData) {
|
|
||||||
console.log(vo.subjectTitle+" "+vo.taskMsg)
|
|
||||||
let contentList = await task('channelBff_querySubject', { "page": 1, "pageSize": "15", "scene": "", "subjectId": vo.subjectId, "tabId": "-1", "tabType": "2", "topContentId": "", "topContents": "" })
|
|
||||||
if (contentList.result.subjectVo.contentList) {
|
|
||||||
for (const v of contentList.result.subjectVo.contentList) {
|
|
||||||
// console.log(v)
|
|
||||||
let rewardsInfo = await task('subject_interactive_done', {"contentId":v.contentId,"subjectId":vo.subjectId})
|
|
||||||
if (rewardsInfo) {
|
|
||||||
console.log(rewardsInfo.message)
|
|
||||||
if (rewardsInfo.data) {
|
|
||||||
console.log(rewardsInfo.data)
|
|
||||||
}
|
|
||||||
$.code = rewardsInfo.code
|
|
||||||
}
|
|
||||||
await $.wait(2000);
|
|
||||||
if ($.code === '202') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
if ($.code === '202') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function getUUID(format = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", UpperCase = 0) {
|
function getUUID(format = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", UpperCase = 0) {
|
||||||
return format.replace(/[xy]/g, function (c) {
|
return format.replace(/[xy]/g, function (c) {
|
||||||
|
Loading…
Reference in New Issue
Block a user