(taskId,taskType)
| 202 | } |
| 203 | |
| 204 | async function apTaskDrawAward(taskId,taskType) { |
| 205 | await $.wait(1000) |
| 206 | return new Promise(resolve => { |
| 207 | $.post(taskPostClientActionUrl(`body={"taskType":"${taskType}","taskId":${taskId},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`,`apTaskDrawAward`), async (err, resp, data) => { |
| 208 | try { |
| 209 | if (err) { |
| 210 | console.log(`${JSON.stringify(err)}`) |
| 211 | console.log(`${$.name} API请求失败,请检查网路重试`) |
| 212 | } else { |
| 213 | data = JSON.parse(data); |
| 214 | $.log("领取奖励") |
| 215 | } |
| 216 | } catch (e) { |
| 217 | $.logErr(e, resp) |
| 218 | } finally { |
| 219 | resolve(data); |
| 220 | } |
| 221 | }) |
| 222 | }) |
| 223 | } |
| 224 | |
| 225 | |
| 226 | function generateShareUrl(inviterId) { |
nothing calls this directly
no test coverage detected