From 786b457d60f7ee3a91d26a90e70d556b9055187a Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Wed, 14 Jun 2023 15:28:44 +0800 Subject: [PATCH] im check --- domain/model/cp_m/cp_relation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/cp_m/cp_relation.go b/domain/model/cp_m/cp_relation.go index 6f24c9c..009b7cb 100644 --- a/domain/model/cp_m/cp_relation.go +++ b/domain/model/cp_m/cp_relation.go @@ -151,7 +151,7 @@ func GetCpInvite(model *domain.Model, userId, userIdInvite uint64, status cp_e.C func GetCpInviteById(model *domain.Model, id, userId uint64) (*CpInvite, error) { res := new(CpInvite) - err := model.DB().Model(CpInvite{}).Where(CpInvite{Id: id}).Where("user_id = ? or invite_userId = ?", userId, userId).First(&res).Error + err := model.DB().Model(CpInvite{}).Where(CpInvite{Id: id}).Where("user_id = ? or invite_user_id = ?", userId, userId).First(&res).Error if err != nil { if err == gorm.ErrRecordNotFound { return nil, nil -- 2.22.0