diff --git a/api/consts/consts.go b/api/consts/consts.go index fe87dbba..d1ff6ce4 100644 --- a/api/consts/consts.go +++ b/api/consts/consts.go @@ -72,7 +72,6 @@ const ( NotifBannerInfoKey = "notif_banner_info" InstallInfoKey = "install_info" AcctPunishmentRealEndTimeKey = "acct_punishment_real_endtime" - IsIosInstallButtonVisibleKey = "is_ios_install_button_visible" ) // del_flag diff --git a/app/mix/controller/config_op.go b/app/mix/controller/config_op.go index f7a57628..82cb7a87 100644 --- a/app/mix/controller/config_op.go +++ b/app/mix/controller/config_op.go @@ -93,17 +93,6 @@ func OpGetBannerInfo(ctx *gin.Context) { ReplyOk(ctx, list) } -func OpGetIsIosInstallButtonVisible(ctx *gin.Context) { - isVisible, ec := service.DefaultConfigService.OpGetIsIosInstallButtonVisible(ctx) - if ec != errcode.ErrCodeOk { - logger.Error("OpGetIsIosInstallButtonVisible fail, ec: %v", ec) - ReplyErrCodeMsg(ctx, ec) - return - } - - ReplyOk(ctx, isVisible) -} - func OpGetInstallInfo(ctx *gin.Context) { cfg, ec := service.DefaultConfigService.OpGetInstallInfo(ctx) if ec != errcode.ErrCodeOk { diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 990eabf1..0c242c86 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -322,7 +322,6 @@ func Init(r *gin.Engine) { // ios安装按钮 apiAppGroup := r.Group("/api/app", PrepareToC()) apiAppGroup.POST("install_info", middleware.JSONParamValidator(base.BaseRequest{}), OpGetInstallInfo) - apiAppGroup.POST("is_ios_install_button_visible", middleware.JSONParamValidator(base.BaseRequest{}), OpGetIsIosInstallButtonVisible) // =============================== 以下是服务,只允许内网调用 =============================== diff --git a/app/mix/service/configservice.go b/app/mix/service/configservice.go index 5c9b952a..1d364241 100644 --- a/app/mix/service/configservice.go +++ b/app/mix/service/configservice.go @@ -232,21 +232,6 @@ func (s *ConfigService) OpGetBannerInfo(ctx *gin.Context) (list []string, ec err 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