From 8f652a31fe9b17d2c10b60ba32d6a1461a80aa54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=7E?= <158024940+xyy0411@users.noreply.github.com> Date: Sat, 9 Nov 2024 22:29:41 +0800 Subject: [PATCH] Update models.go --- niu/models.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/niu/models.go b/niu/models.go index 6b9c446..e318df4 100644 --- a/niu/models.go +++ b/niu/models.go @@ -332,6 +332,9 @@ func (u *userInfo) processJJuAction(adduserniuniu *userInfo, props string) (stri if props == "伟哥" || props == "媚药" { err = errors.New("道具不能混着用哦") } + if err != nil { + return "",err + } if err = u.createUserInfoByProps(props); err != nil { return "", err }