fix QQ转账

This commit is contained in:
ZJY 2021-10-11 11:20:45 +08:00
parent 0945e5919c
commit d0db04b093

View File

@ -385,8 +385,10 @@ var codeSignals = []CodeSignal{
Admin: true, Admin: true,
Handle: func(sender *Sender) interface{} { Handle: func(sender *Sender) interface{} {
qq := Int(sender.Contents[0]) qq := Int(sender.Contents[0])
logs.Info(qq)
if len(sender.Contents) > 1 { if len(sender.Contents) > 1 {
sender.Contents = sender.Contents[1:] sender.Contents = sender.Contents[1:]
logs.Info(sender.Contents)
AdddCoin(qq, Int(sender.Contents[1])) AdddCoin(qq, Int(sender.Contents[1]))
sender.Reply(fmt.Sprintf("你获得%d枚互助值。", Int(sender.Contents[1]))) sender.Reply(fmt.Sprintf("你获得%d枚互助值。", Int(sender.Contents[1])))
} }