From 12f67f37a8c6151e851d32834ad7764bfd711a7a Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 2 Dec 2022 21:42:24 +0800 Subject: [PATCH] update --- internal/business/comm/db/db_user_push_for_jg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/business/comm/db/db_user_push_for_jg.go b/internal/business/comm/db/db_user_push_for_jg.go index 422e44e..5636e37 100644 --- a/internal/business/comm/db/db_user_push_for_jg.go +++ b/internal/business/comm/db/db_user_push_for_jg.go @@ -17,7 +17,7 @@ var DbUserPushForJg = new(dbUserPushForJg) // UserPushForJgGetOne 获取一条记录 func (*dbUserPushForJg) UserPushForJgGetOne(uid string, masterId int64) (*model.UserPushForJg, error) { var cfgList model.UserPushForJg - if err := db.DB.Where("`uid` = ? and `master_id` = ?", uid, masterId).First(&cfgList).Error; err != nil { + if err := db.DB.Where("`uid` = ? and `master_id` = ?", uid, masterId).First(&cfgList).Error; err != nil && err.Error() != "record not found" { return nil, gerrors.WrapError(err) } return &cfgList, nil