update todo

This commit is contained in:
aynakeya
2024-04-26 21:13:19 -07:00
parent 949a66917a
commit 943f75a181

View File

@@ -96,6 +96,7 @@ func (c *Client) init() error {
log.Errorf("room=%s init GetRoomInfo fialed, %s", c.RoomID, err) log.Errorf("room=%s init GetRoomInfo fialed, %s", c.RoomID, err)
} }
c.RoomID = roomInfo.Data.RoomId c.RoomID = roomInfo.Data.RoomId
// todo: maybe reset token every time. cuz i don't know when it will be expired
if c.host == "" { if c.host == "" {
uid, info, err := c.api.GetDanmuInfo(c.RoomID) uid, info, err := c.api.GetDanmuInfo(c.RoomID)
c.Uid = uid c.Uid = uid