mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-23 04:30:26 +08:00
fix: data raw json syntax
This commit is contained in:
2
agent.go
2
agent.go
@@ -261,6 +261,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(`""`),
|
||||||
Message: err.Error(),
|
Message: err.Error(),
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
@@ -277,6 +278,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(`""`),
|
||||||
Message: msg,
|
Message: msg,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user