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

Function helpFriends

jd_jdfactory.js:246–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 })
245}
246async function helpFriends() {
247 for (let code of $.newShareCodes) {
248 if (!code) continue
249 const helpRes = await jdfactory_collectScore(code);
250 if (helpRes.code === 0 && helpRes.data.bizCode === -7) {
251 console.log(`助力机会已耗尽,跳出`);
252 break
253 }
254 }
255}
256async function doTask() {
257 if ($.taskVos && $.taskVos.length > 0) {
258 for (let item of $.taskVos) {

Callers 1

jdFactoryFunction · 0.70

Calls 2

jdfactory_collectScoreFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected