mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 22:14:53 +00:00
fix: #544
This commit is contained in:
3
internal/pkg/vendors/baishan-sdk/client.go
vendored
3
internal/pkg/vendors/baishan-sdk/client.go
vendored
@@ -84,6 +84,9 @@ func (c *Client) sendRequest(method string, path string, params interface{}) (*r
|
||||
func (c *Client) sendRequestWithResult(method string, path string, params interface{}, result BaseResponse) error {
|
||||
resp, err := c.sendRequest(method, path, params)
|
||||
if err != nil {
|
||||
if resp != nil {
|
||||
json.Unmarshal(resp.Body(), &result)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user