threads
This commit is contained in:
@ -34,6 +34,10 @@ func (c *Client) GetBlockGoodsCategory(ctx context.Context, idC int, idR int, so
|
||||
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != 200 {
|
||||
return nil, fmt.Errorf("status code: %d", resp.StatusCode)
|
||||
}
|
||||
|
||||
goods, err := parseGoodsCategory(resp.Body)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("parse goods category: %w", err)
|
||||
|
Reference in New Issue
Block a user