mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-28 08:00:24 +08:00
feat: add iter count
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
//go:embed README.md
|
||||
var sysp string
|
||||
|
||||
func (ag *Agent) system(role PermRole, grp int64) (string, error) {
|
||||
func (ag *Agent) system(role PermRole, iter int, grp int64) (string, error) {
|
||||
tab, err := ag.perm.mdtable(role)
|
||||
if err != nil {
|
||||
return "", err
|
||||
@@ -22,6 +22,6 @@ func (ag *Agent) system(role PermRole, grp int64) (string, error) {
|
||||
return fmt.Sprintf(
|
||||
sysp, ag.id, ag.nickname, ag.sex,
|
||||
ag.chars, tab, ag.memoryof(grp),
|
||||
t.Format(time.RFC3339), t.Unix(), typ,
|
||||
t.Format(time.RFC3339), t.Unix(), typ, iter,
|
||||
), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user