| 457 | } |
| 458 | |
| 459 | function ChangeUserId(desp) { |
| 460 | const QYWX_AM_AY = QYWX_AM.split(','); |
| 461 | if (QYWX_AM_AY[2]) { |
| 462 | const userIdTmp = QYWX_AM_AY[2].split("|"); |
| 463 | let userId = ""; |
| 464 | for (let i = 0; i < userIdTmp.length; i++) { |
| 465 | const count = "账号" + (i + 1); |
| 466 | const count2 = "签到号 " + (i + 1); |
| 467 | if (desp.match(count2)) { |
| 468 | userId = userIdTmp[i]; |
| 469 | } |
| 470 | } |
| 471 | if (!userId) userId = QYWX_AM_AY[2]; |
| 472 | return userId; |
| 473 | } else { |
| 474 | return "@all"; |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | function qywxamNotify(text, desp) { |
| 479 | return new Promise(resolve => { |