(text, desp)
| 643 | } |
| 644 | |
| 645 | async function qywxamNotify(text, desp) { |
| 646 | const MAX_LENGTH = 900; |
| 647 | if (desp.length > MAX_LENGTH) { |
| 648 | let d = desp.substr(0, MAX_LENGTH) + '\n==More=='; |
| 649 | await do_qywxamNotify(text, d); |
| 650 | await qywxamNotify(text, desp.substr(MAX_LENGTH)); |
| 651 | } else { |
| 652 | return await do_qywxamNotify(text, desp); |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | function do_qywxamNotify(text, desp) { |
| 657 | return new Promise((resolve) => { |
no test coverage detected