From 15acc8c9e6dc1aeec5f15f70e869acd8260f1117 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 14 Mar 2023 19:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=B5=A0=E9=80=81=E8=83=8C=E5=8C=85?= =?UTF-8?q?=E7=A4=BC=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _const/enum/msg_e/enum.go | 1 + domain/service/event_s/event_init.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_const/enum/msg_e/enum.go b/_const/enum/msg_e/enum.go index d1be604..1d8f4ba 100644 --- a/_const/enum/msg_e/enum.go +++ b/_const/enum/msg_e/enum.go @@ -109,6 +109,7 @@ const ( GroupActivityRewardMsg = 38 // 群组活动钻石奖励提醒 TemplateActAwardMsg = 39 // 通用模板活动奖励提醒 TemplateSmsCode = 40 // 通用模板活动奖励提醒 + AddUserBag = 50 // 赠送背包礼物 ) type MsgSysUserType = mysql.Type diff --git a/domain/service/event_s/event_init.go b/domain/service/event_s/event_init.go index 5ba9f82..3aef278 100644 --- a/domain/service/event_s/event_init.go +++ b/domain/service/event_s/event_init.go @@ -33,7 +33,7 @@ func UserBagSendEvent() { if err != nil { return err } - if err := msg_m.NewUserRecord(model, e.UserId, msg_e.AddProps, + if err := msg_m.NewUserRecord(model, e.UserId, msg_e.AddUserBag, "", 0, "", fmt.Sprintf("%d", e.Day), gift.IconUrl, "", "").Persistent(); err != nil { model.Log.Errorf("NewUserRecord fail") -- 2.22.0