(taskId,taskType)
| 181 | } |
| 182 | |
| 183 | async function apTaskDetail(taskId,taskType) { |
| 184 | await $.wait(1000) |
| 185 | return new Promise(resolve => { |
| 186 | $.post(taskPostClientActionUrl(`functionId=apTaskDetail&body={"taskType":"${taskType}","taskId":${taskId},"channel":4,"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`,`apTaskDetail`), async (err, resp, data) => { |
| 187 | try { |
| 188 | if (err) { |
| 189 | console.log(`${JSON.stringify(err)}`) |
| 190 | console.log(`${$.name} API请求失败,请检查网路重试`) |
| 191 | } else { |
| 192 | data = JSON.parse(data); |
| 193 | $.taskDetailList = data.data.taskItemList |
| 194 | } |
| 195 | } catch (e) { |
| 196 | $.logErr(e, resp) |
| 197 | } finally { |
| 198 | resolve(data.data.taskItemList); |
| 199 | } |
| 200 | }) |
| 201 | }) |
| 202 | } |
| 203 | |
| 204 | async function apTaskDrawAward(taskId,taskType) { |
| 205 | await $.wait(1000) |
nothing calls this directly
no test coverage detected