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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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