mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
test modify
This commit is contained in:
parent
bee12423b0
commit
3495d75a6f
@ -93,7 +93,7 @@ func (d *DataBases) SetTokenMapByUidPid(userID string, platformID int32, m map[s
|
|||||||
// a = append(a, k)
|
// a = append(a, k)
|
||||||
// a = append(a, v)
|
// a = append(a, v)
|
||||||
//}
|
//}
|
||||||
_, err := d.Exec("hmset", key, redis.Args{}.AddFlat(m))
|
_, err := d.Exec("hmset", key, m)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ func Test_SetTokenMapByUidPid(t *testing.T) {
|
|||||||
m := make(map[string]int, 0)
|
m := make(map[string]int, 0)
|
||||||
m["哈哈"] = 1
|
m["哈哈"] = 1
|
||||||
m["heihei"] = 2
|
m["heihei"] = 2
|
||||||
|
m["2332"] = 4
|
||||||
_ = DB.SetTokenMapByUidPid("1234", 2, m)
|
_ = DB.SetTokenMapByUidPid("1234", 2, m)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user