mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: 低版本node(< v15)不支持replaceAll
Nodejs v15 has V8 8.6 and thus that's the first nodejs version where you can use .replaceAll()
This commit is contained in:
parent
6dbb9854c8
commit
f569207dc5
@ -421,7 +421,7 @@ class Monitor extends Searcher {
|
|||||||
let
|
let
|
||||||
/**转发评语 */
|
/**转发评语 */
|
||||||
RandomStr = getRandomOne(relays)
|
RandomStr = getRandomOne(relays)
|
||||||
.replaceAll('${uname}', uname_map[real_uid] || uname),
|
.replace(/\$\{uname\}/g, uname_map[real_uid] || uname),
|
||||||
/**控制字段 */
|
/**控制字段 */
|
||||||
new_ctrl = [];
|
new_ctrl = [];
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ class Monitor extends Searcher {
|
|||||||
if (isSendChat) {
|
if (isSendChat) {
|
||||||
onelotteryinfo.rid = rid
|
onelotteryinfo.rid = rid
|
||||||
onelotteryinfo.chat = getRandomOne(chats)
|
onelotteryinfo.chat = getRandomOne(chats)
|
||||||
.replaceAll('${uname}', uname_map[real_uid] || uname)
|
.replace(/\$\{uname\}/g, uname_map[real_uid] || uname)
|
||||||
}
|
}
|
||||||
|
|
||||||
alllotteryinfo.push(onelotteryinfo);
|
alllotteryinfo.push(onelotteryinfo);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user