fix: billing status code check

This commit is contained in:
ckt1031
2023-07-10 23:15:30 +08:00
parent 4b2cb573b6
commit 67b8e82457
2 changed files with 4 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ func testChannel(channel *model.Channel, request ChatRequest) error {
return err
}
if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK {
return errors.New("invalid status code: " + strconv.Itoa(resp.StatusCode))
}