From 4f054ce51dec0c3a4594b94bb2a2df41b0a2a84d Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 10 Dec 2024 18:19:06 +0800 Subject: [PATCH] update --- src/implement/user_tag_records_implement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implement/user_tag_records_implement.go b/src/implement/user_tag_records_implement.go index 25fb964..f6a22b4 100644 --- a/src/implement/user_tag_records_implement.go +++ b/src/implement/user_tag_records_implement.go @@ -81,9 +81,9 @@ func (u UserTagRecordsDb) UserTagRecordsExist(uid int64, tagId int) (bool, error var m model.UserTagRecords session := u.Db.Where("tag_id = ?", tagId) if uid != 0 { - session.And("uid=?", uid) + session.And("uid = ?", uid) } - exist, err := session.Exist(m) + exist, err := session.Exist(&m) if err != nil { return false, zhios_order_relate_logx.Error(err) }