From fd59c5223cc676e1a6eb131a4dd07352f8a709e5 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 22 Sep 2021 12:05:04 +0800 Subject: [PATCH] update --- core/im.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/im.go b/core/im.go index 177edde..dbe1171 100644 --- a/core/im.go +++ b/core/im.go @@ -107,7 +107,7 @@ func (sender *Faker) Reply(msgs ...interface{}) (int, error) { rt := "" var n *Notify for _, msg := range msgs { - switch msgs[0].(type) { + switch msg.(type) { case []byte: rt = (string(msg.([]byte))) case string: