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

Function shareCodesFormat

jd_jxnc.js:272–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271// 处理当前账号助力码
272function shareCodesFormat() {
273 return new Promise(async resolve => {
274 // console.log(`第${$.index}个京东账号的助力码:::${jdFruitShareArr[$.index - 1]}`)
275 if (jxncShareCodeArr[$.index - 1]) {
276 currentShareCode = jxncShareCodeArr[$.index - 1].split('@');
277 currentShareCode.push(...(shareCode.split('@')));
278 } else {
279 $.log(`由于您第${$.index}个京东账号未提供shareCode,将采纳本脚本自带的助力码`)
280 currentShareCode = shareCode.split('@');
281 }
282 $.log(`第${$.index}个京东账号将要助力的好友${JSON.stringify(currentShareCode)}`)
283 resolve();
284 })
285}
286
287async function jdJXNC() {
288 subTitle = `【京东账号${$.index}】${$.nickName}`;

Callers 1

jd_jxnc.jsFile · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected