@ -28,6 +28,7 @@ func (t *ImTestCtl) Send() {
err := im_service.SendGroupCustomMessage("admin", t.MustGetInt("activity_id"),
im_service.NoticeStatus(t.MustGetInt("type")), map[string]interface{}{
"content": "测试",
"admin": 1,
})
t.CheckErr(err)
t.SUCCESS("成功")
@ -146,7 +146,7 @@ func HandleSuccess(order *models.UserOrder) error {
}
go im_service.SendGroupCustomMessage(info.UserId, order.ActivityId, im_service.NoticeLiveRedPackStart,
map[string]interface{}{
"admin": admin,
"live_red_envelope_rule_id": info.Id,
"prompt": info.Prompt,
"timestamp": time.Now().Unix(),