master
parent
61bdb85625
commit
9c7b8221bc
|
@ -160,7 +160,18 @@ async function run() {
|
||||||
await takePostRequest('邀请');
|
await takePostRequest('邀请');
|
||||||
}
|
}
|
||||||
//await takePostRequest('startDraw');
|
//await takePostRequest('startDraw');
|
||||||
|
if(!$.viewVideo && !$.outFlag){
|
||||||
|
flag = true
|
||||||
|
await takePostRequest('viewVideo');
|
||||||
|
await $.wait(parseInt(Math.random() * 1000 + 3000, 10))
|
||||||
|
|
||||||
|
}
|
||||||
|
if(!$.addSku && !$.outFlag){
|
||||||
|
flag = true
|
||||||
|
await takePostRequest('addSku');
|
||||||
|
await $.wait(parseInt(Math.random() * 1000 + 3000, 10))
|
||||||
|
|
||||||
|
}
|
||||||
if(flag){
|
if(flag){
|
||||||
await takePostRequest('activityContent');
|
await takePostRequest('activityContent');
|
||||||
}
|
}
|
||||||
|
@ -277,12 +288,12 @@ async function takePostRequest(type) {
|
||||||
case 'visitSku':
|
case 'visitSku':
|
||||||
case 'toShop':
|
case 'toShop':
|
||||||
case 'addSku':
|
case 'addSku':
|
||||||
url = `${domain}/dingzhi/dz/openCard/saveTask`;
|
url = `${domain}/play/monopoly/doTasks`;
|
||||||
let taskType = ''
|
let taskType = ''
|
||||||
let taskValue = ''
|
let taskValue = ''
|
||||||
if(type == 'viewVideo'){
|
if(type == 'viewVideo'){
|
||||||
taskType = 31
|
taskType = 0
|
||||||
taskValue = 31
|
taskValue = 0
|
||||||
}else if(type == 'visitSku'){
|
}else if(type == 'visitSku'){
|
||||||
taskType = 5
|
taskType = 5
|
||||||
taskValue = $.visitSkuValue || 5
|
taskValue = $.visitSkuValue || 5
|
||||||
|
@ -290,10 +301,10 @@ async function takePostRequest(type) {
|
||||||
taskType = 14
|
taskType = 14
|
||||||
taskValue = $.toShopValue || 14
|
taskValue = $.toShopValue || 14
|
||||||
}else if(type == 'addSku'){
|
}else if(type == 'addSku'){
|
||||||
taskType = 2
|
taskType = 21
|
||||||
taskValue = $.addSkuValue || 2
|
taskValue = $.addSkuValue || 21
|
||||||
}
|
}
|
||||||
body = `activityId=${$.activityId}&pin=${encodeURIComponent($.Pin)}&actorUuid=${$.actorUuid}&taskType=${taskType}&taskValue=${taskValue}`
|
body = `activityId=${$.activityId}&pin=${encodeURIComponent($.Pin)}&actorUuid=${$.actorUuid}&taskType=${taskType}`
|
||||||
break;
|
break;
|
||||||
case 'getDrawRecordHasCoupon':
|
case 'getDrawRecordHasCoupon':
|
||||||
url = `${domain}/play/monopoly/getPrizeList`;
|
url = `${domain}/play/monopoly/getPrizeList`;
|
||||||
|
|
Loading…
Reference in New Issue