From 0d10009465308e4c5042a597e16a77d0c831dff8 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 7 Jun 2023 14:50:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96cp=E7=BA=AA=E5=BF=B5?= =?UTF-8?q?=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/cp_r/cp_relation.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/route/cp_r/cp_relation.go b/route/cp_r/cp_relation.go index 6fa612a..2a293cc 100644 --- a/route/cp_r/cp_relation.go +++ b/route/cp_r/cp_relation.go @@ -195,6 +195,15 @@ func ReplyCpInvite(c *gin.Context) (*mycontext.MyContext, error) { model.Log.Errorf("ReplyCpInvite InitCpLevel fail:%v-%v-%v", userSender.ID, user.ID, err) return err } + // 初始化cp纪念日 + if err := cp_m.InitCpAnniversary(model, cp_m.CpRelationTmp{ + Entity: mysql.Entity{ID: mysql.ID(cpId)}, + UserId1: userSender.ID, + UserId2: user.ID, + }); err != nil { + model.Log.Errorf("ReplyCpInvite InitCpAnniversary fail:%v-%v-%v", userSender.ID, user.ID, err) + return err + } // 发放告白礼物 cwj---- //if _, err = bag_tx.SendUserBag(model, userSender.ID, 1, award.GiftId, award.GiftN, 3, "告白礼物"); err != nil { // model.Log.Errorf("ReplyCpInvite userSender:%d, user:%d, status:%d, err:%v", userSender.ID, user.ID, updateStatus, err) -- 2.22.0