mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 21:23:44 +08:00
Update sdk/api/channel.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user