mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-05 02:00:23 +08:00
fix: possible wrong apiresp
This commit is contained in:
4
agent.go
4
agent.go
@@ -283,7 +283,7 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
|
||||
logrus.Debugln("[goba] GetAction extract memory err:", err)
|
||||
ag.AddResponse(grp, &APIResponse{
|
||||
Status: "error",
|
||||
Data: []byte(`""`),
|
||||
Data: []byte(`null`),
|
||||
Message: err.Error(),
|
||||
})
|
||||
continue
|
||||
@@ -300,7 +300,7 @@ func (ag *Agent) GetAction(api deepinfra.API, p model.Protocol, grp int64, role
|
||||
logrus.Debugln("[goba] GetAction add memory response:", s, "msg:", msg)
|
||||
ag.AddResponse(grp, &APIResponse{
|
||||
Status: s,
|
||||
Data: []byte(`""`),
|
||||
Data: []byte(`null`),
|
||||
Message: msg,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user