This commit is contained in:
lwl0608 2024-10-11 16:27:30 +08:00
commit cc1c626292
1 changed files with 12 additions and 0 deletions

View File

@ -323,6 +323,8 @@ var WithdrawFreezeMidMap = map[int64]bool{
} }
func isWithdrawFreeze(mid int64) bool { func isWithdrawFreeze(mid int64) bool {
_ = getWithdrawFreezeMidMap()
return WithdrawFreezeMidMap[mid] return WithdrawFreezeMidMap[mid]
} }
@ -520,3 +522,13 @@ func OpGetWithdrawFreezeList(ctx *gin.Context) {
} }
ReplyOk(ctx, data) 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
}