Update sdk/api/channel.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
skyrover
2025-04-22 18:11:12 +08:00
committed by GitHub
parent 5c952ae86d
commit 534ea7529c

View File

@@ -162,8 +162,7 @@ func (channel *Channel) Get(client *OneClient) error {
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
return err
}
channel = data.Data.(*Channel)
return nil
*channel = *(data.Data.(*Channel))
}
// test channel