修复京喜工厂部分账号做任务火爆,导致任务做不完的情况
This commit is contained in:
@ -488,7 +488,7 @@ function completeTask(taskId, taskName) {
|
||||
function doTask(taskId) {
|
||||
return new Promise(async resolve => {
|
||||
// const url = `/newtasksys/newtasksys_front/DoTask?source=dreamfactory&bizCode=dream_factory&taskId=${taskId}&sceneval=2&g_login_type=1`;
|
||||
$.get(newtasksysUrl('DoTask', taskId), (err, resp, data) => {
|
||||
$.get(newtasksysUrl('DoTask', taskId, '_time,bizCode,configExtra,source,taskId'), (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
@ -1434,11 +1434,14 @@ function taskurl(functionId, body = '') {
|
||||
}
|
||||
}
|
||||
}
|
||||
function newtasksysUrl(functionId, taskId) {
|
||||
function newtasksysUrl(functionId, taskId, stk) {
|
||||
let url = `${JD_API_HOST}/newtasksys/newtasksys_front/${functionId}?source=dreamfactory&bizCode=dream_factory&sceneval=2&g_login_type=1&_time=${Date.now()}&_=${Date.now()}`;
|
||||
if (taskId) {
|
||||
url += `&taskId=${taskId}`;
|
||||
}
|
||||
if (stk) {
|
||||
url += `&_stk=${stk}`;
|
||||
}
|
||||
return {
|
||||
url,
|
||||
"headers": {
|
||||
|
Reference in New Issue
Block a user