diff --git a/controllers/client/shake_red_envelope.go b/controllers/client/shake_red_envelope.go index 6133278..3e6c389 100644 --- a/controllers/client/shake_red_envelope.go +++ b/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{}{