Merge pull request 'by Robin at 20240429' (#381) from feat-IRONFANS-86-Robin into main
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/381
This commit is contained in:
commit
c366a96735
|
@ -5,4 +5,5 @@ import "service/dbstruct"
|
|||
type PlatformCfg struct {
|
||||
Name string `json:"name"`
|
||||
Icon *dbstruct.MediaComponent `json:"icon"`
|
||||
DelFlag int64 `json:"del_flag"`
|
||||
}
|
||||
|
|
|
@ -67,8 +67,10 @@ func (s *ConfigService) OpGetPlatformList(ctx *gin.Context) (platformMap map[int
|
|||
logger.Error("Apollo read failed : %v", err)
|
||||
return nil, errcode.ErrCodeApolloReadFail
|
||||
}
|
||||
if cfg.DelFlag == 0 {
|
||||
platformMap[int64(i)] = cfg
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue