* 互助 * @param taskId * @param inviteType * @param inviterPin * @returns {Promise }
(taskId = '',inviteType = '',inviterPin = '')
| 230 | * @returns {Promise<unknown>} |
| 231 | */ |
| 232 | function getJoyBaseInfo(taskId = '',inviteType = '',inviterPin = '') { |
| 233 | //await $.wait(20) |
| 234 | return new Promise(resolve => { |
| 235 | $.post(taskPostClientActionUrl(`body={"taskId":"${taskId}","inviteType":"${inviteType}","inviterPin":"${inviterPin}","linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&_t=1625480372020&appid=activities_platform`,`joyBaseInfo`), async (err, resp, data) => { |
| 236 | try { |
| 237 | if (err) { |
| 238 | console.log(`${JSON.stringify(err)}`) |
| 239 | console.log(`${$.name} API请求失败,请检查网路重试`) |
| 240 | } else { |
| 241 | data = JSON.parse(data); |
| 242 | $.joyBaseInfo = data.data |
| 243 | } |
| 244 | } catch (e) { |
| 245 | $.logErr(e, resp) |
| 246 | } finally { |
| 247 | $.log(`resolve start`) |
| 248 | resolve(data); |
| 249 | $.log(`resolve end`) |
| 250 | } |
| 251 | }) |
| 252 | }) |
| 253 | } |
| 254 | |
| 255 | |
| 256 | function apDoTask(taskId,taskType,itemId = '',appid = 'activities_platform') { |
no test coverage detected