freeze_apollo

This commit is contained in:
lwl0608 2024-10-11 16:26:41 +08:00
parent 8662ce92e4
commit aed10596a3
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 {
_ = 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
}