This commit is contained in:
Leufolium 2024-11-18 16:18:09 +08:00
parent fb654a0942
commit e493a130fe
1 changed files with 15 additions and 0 deletions

View File

@ -216,6 +216,21 @@ func (s *ConfigService) OpGetIsMomentImageEncryptEnabled(ctx *gin.Context) (isEn
return
}
func (s *ConfigService) OpGetIsIosInstallButtonVisible(ctx *gin.Context) (isVisible int64, ec errcode.ErrCode) {
ec = errcode.ErrCodeOk
isIosInstallButtonVisible, err := apollo.GetIntValue(consts.IsIosInstallButtonVisibleKey, apollo.ApolloOpts().SetNamespace("application"))
if err != nil {
logger.Error("Apollo read failed : %v", err)
ec = errcode.ErrCodeApolloReadFail
return
}
isVisible = int64(isIosInstallButtonVisible)
return
}
func (s *ConfigService) OpGetInstallInfo(ctx *gin.Context) (cfg *apollostruct.InstallCfg, ec errcode.ErrCode) {
ec = errcode.ErrCodeOk