feat: support return date for billing

This commit is contained in:
ckt1031
2023-07-11 17:40:52 +08:00
parent 12365ccf69
commit 80d5d6edfb
4 changed files with 35 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"one-api/common"
"one-api/model"
@@ -100,7 +100,7 @@ func testChannel(channel *model.Channel, request ChatRequest) error {
}
}
} else {
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return err
}