Merge pull request 'feat-IRONFANS-86-Robin' (#384) from feat-IRONFANS-86-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/384
This commit is contained in:
chenhao 2024-04-29 22:37:25 +08:00
commit edbcabb372
2 changed files with 4 additions and 4 deletions

View File

@ -5,5 +5,5 @@ import "service/dbstruct"
type PlatformCfg struct { type PlatformCfg struct {
Name string `json:"name"` Name string `json:"name"`
Icon *dbstruct.MediaComponent `json:"icon"` Icon *dbstruct.MediaComponent `json:"icon"`
DelFlag int64 `json:"del_flag"` IsDeleted int64 `json:"is_deleted"`
} }

View File

@ -67,7 +67,7 @@ func (s *ConfigService) OpGetPlatformList(ctx *gin.Context) (platformMap map[int
logger.Error("Apollo read failed : %v", err) logger.Error("Apollo read failed : %v", err)
return nil, errcode.ErrCodeApolloReadFail return nil, errcode.ErrCodeApolloReadFail
} }
if cfg.DelFlag == 0 { if cfg.IsDeleted == 0 {
platformMap[int64(i)] = cfg platformMap[int64(i)] = cfg
} }
} }