(taskId,taskType,itemId = '',appid = 'activities_platform')
| 254 | |
| 255 | |
| 256 | function apDoTask(taskId,taskType,itemId = '',appid = 'activities_platform') { |
| 257 | //await $.wait(20) |
| 258 | return new Promise(resolve => { |
| 259 | $.post(taskPostClientActionUrl(`body={"taskType":"${taskType}","taskId":${taskId},"channel":4,"linkId":"LsQNxL7iWDlXUs6cFl-AAg","itemId":"${itemId}"}&appid=${appid}`,`apDoTask`), async (err, resp, data) => { |
| 260 | try { |
| 261 | if (err) { |
| 262 | console.log(`${JSON.stringify(err)}`) |
| 263 | console.log(`${$.name} API请求失败,请检查网路重试`) |
| 264 | } else { |
| 265 | data = JSON.parse(data); |
| 266 | } |
| 267 | } catch (e) { |
| 268 | $.logErr(e, resp) |
| 269 | } finally { |
| 270 | resolve(data); |
| 271 | } |
| 272 | }) |
| 273 | }) |
| 274 | } |
| 275 | |
| 276 | function apTaskDetail(taskId,taskType) { |
| 277 | //await $.wait(20) |
no test coverage detected