From 9bab331b4a09533ab92c5852179b4a09d15e6933 Mon Sep 17 00:00:00 2001 From: eatMoreApple <15055461510@163.com> Date: Wed, 21 Apr 2021 21:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E5=8C=B9=E9=85=8D=E9=94=99=E8=AF=AF=E6=97=B6?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=9A=84error=E4=B8=BAnil=20:bug:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- caller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caller.go b/caller.go index b15f0f9..3c99034 100644 --- a/caller.go +++ b/caller.go @@ -53,10 +53,10 @@ func (c *Caller) CheckLogin(uuid string) (*CheckLoginResponse, error) { return nil, err } // 正则匹配检测的code - // 具体code参考 + // 具体code参考global.go results := statusCodeRegexp.FindSubmatch(data) if len(results) != 2 { - return nil, nil + return nil, errors.New("error status code match") } code := string(results[1]) return &CheckLoginResponse{Code: code, Raw: data}, nil