test modify

pull/103/head
Gordon 3 years ago
parent b2f5f56fa0
commit a2292b1177

@ -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 { func (d *DataBases) SetTokenMapByUidPid(userID string, platformID int32, m map[string]int) error {
key := uidPidToken + userID + ":" + constant.PlatformIDToName(platformID) key := uidPidToken + userID + ":" + constant.PlatformIDToName(platformID)
//var a []interface{} var a []interface{}
//for k, v := range m { for k, v := range m {
// a = append(a, k) a = append(a, k)
// a = append(a, v) a = append(a, v)
//} }
_, err := d.Exec("HMSET", key, m) _, err := d.Exec("HMSET", key, a...)
return err return err
} }

Loading…
Cancel
Save