share_redirect_urls
This commit is contained in:
parent
13e9fc005d
commit
8b6d6a1435
|
@ -12,8 +12,15 @@ func ColdConfigHandler(ctx *gin.Context) {
|
|||
logger.Error("apollo.GetStringValue fail, key: %v, err: %v", "share_redirect_url", err)
|
||||
}
|
||||
|
||||
shareRedirectUrls := make([]string, 0)
|
||||
err = apollo.GetJson("share_redirect_urls", &shareRedirectUrls, apollo.ApolloOpts().SetNamespace("application"))
|
||||
if err != nil {
|
||||
logger.Error("apollo.GetJson fail, key: %v, err: %v", "share_redirect_url", err)
|
||||
}
|
||||
|
||||
data := map[string]any{
|
||||
"share_redirect_url": shareRedirectUrl,
|
||||
"share_redirect_url": shareRedirectUrl,
|
||||
"share_redirect_urls": shareRedirectUrls,
|
||||
}
|
||||
ReplyOk(ctx, data)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue