(taskId,taskType,itemId)
| 161 | |
| 162 | |
| 163 | async function apDoTask(taskId,taskType,itemId) { |
| 164 | await $.wait(1000) |
| 165 | return new Promise(resolve => { |
| 166 | $.post(taskPostClientActionUrl(`body={"taskType":"${taskType}","taskId":${taskId},"channel":4,"linkId":"LsQNxL7iWDlXUs6cFl-AAg","itemId":"${itemId}"}&appid=activities_platform`,`apDoTask`), async (err, resp, data) => { |
| 167 | try { |
| 168 | if (err) { |
| 169 | console.log(`${JSON.stringify(err)}`) |
| 170 | console.log(`${$.name} API请求失败,请检查网路重试`) |
| 171 | } else { |
| 172 | data = JSON.parse(data); |
| 173 | } |
| 174 | } catch (e) { |
| 175 | $.logErr(e, resp) |
| 176 | } finally { |
| 177 | resolve(data); |
| 178 | } |
| 179 | }) |
| 180 | }) |
| 181 | } |
| 182 | |
| 183 | async function apTaskDetail(taskId,taskType) { |
| 184 | await $.wait(1000) |
nothing calls this directly
no test coverage detected