From aed10596a3d5dc14c046516d5d7f43065c67735f Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Fri, 11 Oct 2024 16:26:41 +0800 Subject: [PATCH] freeze_apollo --- app/mix/controller/vas.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/mix/controller/vas.go b/app/mix/controller/vas.go index 347178c1..21c102af 100644 --- a/app/mix/controller/vas.go +++ b/app/mix/controller/vas.go @@ -323,6 +323,8 @@ var WithdrawFreezeMidMap = map[int64]bool{ } func isWithdrawFreeze(mid int64) bool { + _ = getWithdrawFreezeMidMap() + return WithdrawFreezeMidMap[mid] } @@ -471,3 +473,13 @@ func PayMeans(ctx *gin.Context) { } ReplyOk(ctx, data) } + +func getWithdrawFreezeMidMap() map[int64]int { + m := make(map[int64]int) + err := apollo.GetJson("withdraw_freeze", &m, apollo.ApolloOpts().SetNamespace("application")) + if err != nil { + logger.Error("apollo.GetJson fail, key: %v, err: %v", "withdraw_freeze", err) + } + logger.Info("withdraw_freeze_map: %v", util.ToJson(m)) + return m +}