From 5a7b6721b9571c27348c17d5d6dd268e78b2a252 Mon Sep 17 00:00:00 2001 From: shanmite Date: Mon, 15 Aug 2022 16:21:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20`LotteryOrder`=E8=AE=BE=E7=BD=AE(#176)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/data/global_var.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/data/global_var.js b/lib/data/global_var.js index 04c5780..2787999 100644 --- a/lib/data/global_var.js +++ b/lib/data/global_var.js @@ -42,7 +42,8 @@ let global_var = { LotteryOrder .map(it => LotteryOrderMap.get(it)) .filter(it => typeof it === "string") - .map(lottery_option => [lottery_option, config[lottery_option]])); + .flatMap(lottery_option => config[lottery_option] + .map(it => [lottery_option, it]))); this.set('remoteconfig', await getRemoteConfig()); } await createDir('dyids');