MCPcopy Create free account
hub / github.com/Semporia/Scripts / pkTaskDetail

Function pkTaskDetail

activity/jd_nian_ar.js:194–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 })
193}
194function pkTaskDetail() {
195 return new Promise(resolve => {
196 $.post(taskPostUrl("nian_pk_getTaskDetail", {}, "nian_pk_getTaskDetail"), async (err, resp, data) => {
197 try {
198 if (err) {
199 console.log(`${JSON.stringify(err)}`)
200 console.log(`${$.name} API请求失败,请检查网路重试`)
201 } else {
202 if (safeGet(data)) {
203 data = JSON.parse(data);
204 console.log(data)
205 }
206 }
207 } catch (e) {
208 $.logErr(e, resp)
209 } finally {
210 resolve();
211 }
212 })
213 })
214}
215function pkAssignGroup(inviteId) {
216 let temp = {
217 "confirmFlag": 1,

Callers

nothing calls this directly

Calls 5

taskPostUrlFunction · 0.70
safeGetFunction · 0.70
postMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected