fix: LotteryOrder设置(#176)

This commit is contained in:
shanmite 2022-08-15 16:21:52 +08:00
parent aae3de84f4
commit 5a7b6721b9

View File

@ -42,7 +42,8 @@ let global_var = {
LotteryOrder LotteryOrder
.map(it => LotteryOrderMap.get(it)) .map(it => LotteryOrderMap.get(it))
.filter(it => typeof it === "string") .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()); this.set('remoteconfig', await getRemoteConfig());
} }
await createDir('dyids'); await createDir('dyids');