1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-05 02:00:23 +08:00

fix: use number but not float

This commit is contained in:
源文雨
2025-09-22 23:19:05 +08:00
parent 320c6b821c
commit 6c8dc06c58

View File

@@ -82,6 +82,7 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
}
reqs = make([]zero.APIRequest, 0, 2)
dec := json.NewDecoder(strings.NewReader(resp))
dec.UseNumber()
for dec.More() {
r := zero.APIRequest{}
err = dec.Decode(&r)