🐛 修复转发问题

This commit is contained in:
Yiwen-Chan 2021-03-22 21:15:00 +08:00
parent 94b8c149e6
commit 0a1dcde512

View File

@ -202,7 +202,7 @@ func init() { // 插件主体
Handle(func(ctx *zero.Ctx) {
ctx.SendGroupMessage(
utils.Str2Int(ctx.State["regex_matched"].([]string)[1]), // 需要发送的群
ctx.State["regex_matched"].([]string)[1], // 需要发送的信息
ctx.State["regex_matched"].([]string)[2], // 需要发送的信息
)
ctx.Send("📧 --> " + ctx.State["regex_matched"].([]string)[1])
return
@ -212,7 +212,7 @@ func init() { // 插件主体
Handle(func(ctx *zero.Ctx) {
ctx.SendPrivateMessage(
utils.Str2Int(ctx.State["regex_matched"].([]string)[1]), // 需要发送的人的qq
ctx.State["regex_matched"].([]string)[1], // 需要发送的信息
ctx.State["regex_matched"].([]string)[2], // 需要发送的信息
)
ctx.Send("📧 --> " + ctx.State["regex_matched"].([]string)[1])
return