Merge branch 'dev-lwl/share_redirect_urls' into test

This commit is contained in:
lwl0608 2024-12-12 14:45:33 +08:00
commit 671b53f8c7
1 changed files with 8 additions and 1 deletions

View File

@ -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)
}