提交 a2292b11 编写于 作者: programor_guo's avatar programor_guo

test modify

上级 b2f5f56f
......@@ -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, m)
var a []interface{}
for k, v := range m {
a = append(a, k)
a = append(a, v)
}
_, err := d.Exec("HMSET", key, a...)
return err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册