| 1534 | } |
| 1535 | |
| 1536 | function 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 | |
| 1556 | function qywxamNotify(text, desp, strsummary = "") { |
| 1557 | return new Promise((resolve) => { |