MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / ChangeUserId

Function ChangeUserId

tools/sendNotify.js:625–643  ·  view source on GitHub ↗
(desp)

Source from the content-addressed store, hash-verified

623}
624
625function ChangeUserId(desp) {
626 const { QYWX_AM } = push_config;
627 const QYWX_AM_AY = QYWX_AM.split(',');
628 if (QYWX_AM_AY[2]) {
629 const userIdTmp = QYWX_AM_AY[2].split('|');
630 let userId = '';
631 for (let i = 0; i < userIdTmp.length; i++) {
632 const count = '账号' + (i + 1);
633 const count2 = '签到号 ' + (i + 1);
634 if (desp.match(count2)) {
635 userId = userIdTmp[i];
636 }
637 }
638 if (!userId) userId = QYWX_AM_AY[2];
639 return userId;
640 } else {
641 return '@all';
642 }
643}
644
645async function qywxamNotify(text, desp) {
646 const MAX_LENGTH = 900;

Callers 1

do_qywxamNotifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected