diff --git a/_const/enum/msg_e/enum.go b/_const/enum/msg_e/enum.go index d1be60410857064495b1ef1b1a8e05b19ddf340f..1d8f4ba89d04153707ed619f9045fac92f95210c 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 5ba9f82297e30822b7725d686f3b5b136c6cbfcc..3aef27820df580f073b43a78c62bc98b799e55cf 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")