bugfix: GetTeamsNameByIds

This commit is contained in:
UlricQin 2021-03-18 10:03:20 +08:00
parent 40ce0d75ed
commit d89eaec596
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,8 @@ func TeamGetByIds(ids []int64) ([]Team, error) {
}
func GetTeamsNameByIds(ids string) ([]string, error) {
ids = strings.Replace(ids, "[", "", -1)
ids = strings.Replace(ids, "]", "", -1)
idsStrArr := strings.Split(ids, ",")
teamIds := []int64{}
for _, tid := range idsStrArr {