Browse Source

fix:bug

master
黄梓健 5 years ago
parent
commit
0ec12a1a11
  1. 8
      controllers/client/shake_red_envelope.go

8
controllers/client/shake_red_envelope.go

@ -29,7 +29,7 @@ func (t *ShakeRedEnvelopeCtl) Status() {
}
func (t *ShakeRedEnvelopeCtl) Shake() {
customerId := t.MustGetInt64("customer_id")
//customerId := t.MustGetInt64("customer_id")
ruleId := t.MustGetInt64("shake_red_envelope_rule_id")
userId := t.MustGetUID()
areaId := t.MustGetAreaId()
@ -104,7 +104,7 @@ func (t *ShakeRedEnvelopeCtl) Shake() {
go ws_send_service.SendShakeRedEnvelope(fmt.Sprintf("%d", activity.Id),
define.TYPE_H5USER, userId, map[string]interface{}{
"customer_id": customerId,
"customer_id": activity.CustomerId,
"user_id": user.Id,
"type": "shake_rb",
"data": map[string]interface{}{
@ -117,8 +117,8 @@ func (t *ShakeRedEnvelopeCtl) Shake() {
})
go ws_send_service.SendShakeRedEnvelope(fmt.Sprintf("%d", activity.Id),
define.TYPE_CUSTOMER, customerId, map[string]interface{}{
"customer_id": customerId,
define.TYPE_CUSTOMER, activity.CustomerId, map[string]interface{}{
"customer_id": activity.CustomerId,
"user_id": user.Id,
"type": "shake_rb",
"data": map[string]interface{}{

Loading…
Cancel
Save