Browse Source

fix:bug

token_replace
黄梓健 4 years ago
parent
commit
e51dcf0949
  1. 1
      controllers/common/im.go
  2. 2
      services/pay/handle.go

1
controllers/common/im.go

@ -28,6 +28,7 @@ func (t *ImTestCtl) Send() {
err := im_service.SendGroupCustomMessage("admin", t.MustGetInt("activity_id"), err := im_service.SendGroupCustomMessage("admin", t.MustGetInt("activity_id"),
im_service.NoticeStatus(t.MustGetInt("type")), map[string]interface{}{ im_service.NoticeStatus(t.MustGetInt("type")), map[string]interface{}{
"content": "测试", "content": "测试",
"admin": 1,
}) })
t.CheckErr(err) t.CheckErr(err)
t.SUCCESS("成功") t.SUCCESS("成功")

2
services/pay/handle.go

@ -146,7 +146,7 @@ func HandleSuccess(order *models.UserOrder) error {
} }
go im_service.SendGroupCustomMessage(info.UserId, order.ActivityId, im_service.NoticeLiveRedPackStart, go im_service.SendGroupCustomMessage(info.UserId, order.ActivityId, im_service.NoticeLiveRedPackStart,
map[string]interface{}{ map[string]interface{}{
"admin": 1,
"admin": admin,
"live_red_envelope_rule_id": info.Id, "live_red_envelope_rule_id": info.Id,
"prompt": info.Prompt, "prompt": info.Prompt,
"timestamp": time.Now().Unix(), "timestamp": time.Now().Unix(),

Loading…
Cancel
Save