From b8dcf8f1ec2162083a893ec6d016bd62f5808206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=8B=A5?= Date: Sun, 8 Mar 2026 16:20:19 +0800 Subject: [PATCH] =?UTF-8?q?sync:=20soul-api=20=E6=8E=A5=E5=8F=A3=E9=80=BB?= =?UTF-8?q?=E8=BE=91=20|=20=E5=8E=9F=E5=9B=A0:=20=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soul-api/internal/handler/ckb.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/soul-api/internal/handler/ckb.go b/soul-api/internal/handler/ckb.go index 57d1db0e..4797e88f 100644 --- a/soul-api/internal/handler/ckb.go +++ b/soul-api/internal/handler/ckb.go @@ -181,22 +181,6 @@ func CKBJoin(c *gin.Context) { database.DB().Model(&model.User{}).Where("id = ?", body.UserID).Updates(updates) } } - // 同时写入 match_records 表,让后台「找伙伴」各 Tab 能看到 - if body.UserID != "" { - rec := model.MatchRecord{ - ID: fmt.Sprintf("mr_ckb_%d", time.Now().UnixNano()), - UserID: body.UserID, - MatchType: body.Type, - } - if body.Phone != "" { - rec.Phone = &body.Phone - } - if body.Wechat != "" { - rec.WechatID = &body.Wechat - } - database.DB().Create(&rec) - } - msg := "成功加入" + ckbSourceMap[body.Type] if result.Message == "已存在" { msg = "您已加入,我们会尽快联系您"