merge
This commit is contained in:
commit
cc1c626292
|
@ -323,6 +323,8 @@ var WithdrawFreezeMidMap = map[int64]bool{
|
|||
}
|
||||
|
||||
func isWithdrawFreeze(mid int64) bool {
|
||||
_ = getWithdrawFreezeMidMap()
|
||||
|
||||
return WithdrawFreezeMidMap[mid]
|
||||
}
|
||||
|
||||
|
@ -520,3 +522,13 @@ func OpGetWithdrawFreezeList(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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue