mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 20:11:14 +08:00
test modify
This commit is contained in:
parent
2be1e1a70d
commit
b2f5f56fa0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user