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

Function shareCodesFormat

jd_cfd.js:1601–1613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1599}
1600//格式化助力码
1601function shareCodesFormat() {
1602 return new Promise(async resolve => {
1603 $.newShareCodes = []
1604 const readShareCodeRes = await readShareCode();
1605 if (readShareCodeRes && readShareCodeRes.code === 200) {
1606 $.newShareCodes = [...new Set([...$.shareCodes, ...$.strMyShareIds, ...(readShareCodeRes.data || [])])];
1607 } else {
1608 $.newShareCodes = [...new Set([...$.shareCodes, ...$.strMyShareIds])];
1609 }
1610 console.log(`您将要助力的好友${JSON.stringify($.newShareCodes)}`)
1611 resolve();
1612 })
1613}
1614
1615function TotalBean() {
1616 return new Promise(resolve => {

Callers

nothing calls this directly

Calls 2

readShareCodeFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected