MCPcopy Create free account
hub / github.com/6dylan6/jdm / ChangeUserId

Function ChangeUserId

function/sendNotify.js:1536–1554  ·  view source on GitHub ↗
(desp)

Source from the content-addressed store, hash-verified

1534}
1535
1536function ChangeUserId(desp) {
1537 const QYWX_AM_AY = QYWX_AM.split(',');
1538 if (QYWX_AM_AY[2]) {
1539 const userIdTmp = QYWX_AM_AY[2].split('|');
1540 let userId = '';
1541 for (let i = 0; i < userIdTmp.length; i++) {
1542 const count = '账号' + (i + 1);
1543 const count2 = '签到号 ' + (i + 1);
1544 if (desp.match(count2)) {
1545 userId = userIdTmp[i];
1546 }
1547 }
1548 if (!userId)
1549 userId = QYWX_AM_AY[2];
1550 return userId;
1551 } else {
1552 return '@all';
1553 }
1554}
1555
1556function qywxamNotify(text, desp, strsummary = "") {
1557 return new Promise((resolve) => {

Callers 1

qywxamNotifyFunction · 0.70

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected