mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-07-01 01:10:38 +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)
|
logrus.Debugln("[goba] GetAction extract memory err:", err)
|
||||||
ag.AddResponse(grp, &APIResponse{
|
ag.AddResponse(grp, &APIResponse{
|
||||||
Status: "error",
|
Status: "error",
|
||||||
Data: []byte(`""`),
|
Data: []byte(`null`),
|
||||||
Message: err.Error(),
|
Message: err.Error(),
|
||||||
})
|
})
|
||||||
continue
|
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)
|
logrus.Debugln("[goba] GetAction add memory response:", s, "msg:", msg)
|
||||||
ag.AddResponse(grp, &APIResponse{
|
ag.AddResponse(grp, &APIResponse{
|
||||||
Status: s,
|
Status: s,
|
||||||
Data: []byte(`""`),
|
Data: []byte(`null`),
|
||||||
Message: msg,
|
Message: msg,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user