From b2f5f56fa016bb2ab68edf4ecfae283fba13f1ec Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Tue, 30 Nov 2021 19:54:27 +0800 Subject: [PATCH] test modify --- pkg/common/db/redisModel.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/common/db/redisModel.go b/pkg/common/db/redisModel.go index 97ad066bc..838b8e5f6 100644 --- a/pkg/common/db/redisModel.go +++ b/pkg/common/db/redisModel.go @@ -88,12 +88,12 @@ func (d *DataBases) GetTokenMapByUidPid(userID, platformID string) (map[string]i } func (d *DataBases) SetTokenMapByUidPid(userID string, platformID int32, m map[string]int) error { key := uidPidToken + userID + ":" + constant.PlatformIDToName(platformID) - var a []interface{} - for k, v := range m { - a = append(a, k) - a = append(a, v) - } - _, err := d.Exec("HMSET", key, a...) + //var a []interface{} + //for k, v := range m { + // a = append(a, k) + // a = append(a, v) + //} + _, err := d.Exec("HMSET", key, m) return err }