| 623 | } |
| 624 | |
| 625 | function 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 | |
| 645 | async function qywxamNotify(text, desp) { |
| 646 | const MAX_LENGTH = 900; |