fix(sender/onebot): 修复onebot参数写反的问题
This commit is contained in:
@@ -7,7 +7,7 @@ require (
|
||||
github.com/CuteReimu/bilibili/v2 v2.3.5
|
||||
github.com/gin-gonic/gin v1.11.0
|
||||
github.com/robfig/cron/v3 v3.0.1
|
||||
github.com/ssdomei232/napcat-http-go-sdk v0.0.0-20260301031057-040b9c49010b
|
||||
github.com/ssdomei232/napcat-http-go-sdk v1.0.0
|
||||
github.com/wneessen/go-mail v0.7.2
|
||||
)
|
||||
|
||||
|
||||
@@ -78,8 +78,8 @@ github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e h1:MRM5ITcdelLK2j1
|
||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e/go.mod h1:XV66xRDqSt+GTGFMVlhk3ULuV0y9ZmzeVGR4mloJI3M=
|
||||
github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE=
|
||||
github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
|
||||
github.com/ssdomei232/napcat-http-go-sdk v0.0.0-20260301031057-040b9c49010b h1:eeKLVKw+YAqxUuSzoKampbkDAS0krP5QMbNrFkMi2ss=
|
||||
github.com/ssdomei232/napcat-http-go-sdk v0.0.0-20260301031057-040b9c49010b/go.mod h1:yPsSaMs3OyKMVPXwIs5ZB5G532vRi1GvL/WiWUEwblU=
|
||||
github.com/ssdomei232/napcat-http-go-sdk v1.0.0 h1:BY3iqqlZw5letiCwTmfMrhyqsx0a96eL5LpDuinnOSE=
|
||||
github.com/ssdomei232/napcat-http-go-sdk v1.0.0/go.mod h1:yPsSaMs3OyKMVPXwIs5ZB5G532vRi1GvL/WiWUEwblU=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
||||
|
||||
@@ -135,7 +135,7 @@ func SendBili(biliClient *bilibili.Client) {
|
||||
return
|
||||
}
|
||||
|
||||
stopMsg := fmt.Sprintf("%s\n\n%s\n\n本消息由自动程序发送(摇篮系统)", base.GetBasicInfo(), config.BiliMsg)
|
||||
stopMsg := fmt.Sprintf("%s\n\n%s\n\n本消息由自动程序发送", base.GetBasicInfo(), config.BiliMsg)
|
||||
|
||||
var dynamicParams bilibili.CreateDynamicParam
|
||||
dynamicParams = bilibili.CreateDynamicParam{
|
||||
|
||||
@@ -17,7 +17,7 @@ func SendOneBot() {
|
||||
return
|
||||
}
|
||||
|
||||
stopMsg := fmt.Sprintf("%s\n\n%s\n\n本消息由自动程序发送(摇篮系统)", base.GetBasicInfo(), config.OneBotConfig.Msg)
|
||||
stopMsg := fmt.Sprintf("%s\n\n%s\n\n本消息由自动程序发送", base.GetBasicInfo(), config.OneBotConfig.Msg)
|
||||
|
||||
for _, groupId := range config.OneBotConfig.SendGroups {
|
||||
sendOneBotMsg(groupId, stopMsg)
|
||||
@@ -32,7 +32,7 @@ func sendOneBotMsg(groupID int, msg string) {
|
||||
return
|
||||
}
|
||||
|
||||
client := napcat.NewClient(config.OneBotConfig.URL, config.OneBotConfig.Token)
|
||||
client := napcat.NewClient(config.OneBotConfig.Token, config.OneBotConfig.URL)
|
||||
|
||||
err = client.SendGroupMsg(strconv.Itoa(groupID), msg)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user