|
|
@ -106,9 +106,11 @@ func (r *rabbitmq) Publish(exchangeName, msg string, delay ...int64) error {
|
|
|
|
false, //强制为
|
|
|
|
false, //强制为
|
|
|
|
false, //立即
|
|
|
|
false, //立即
|
|
|
|
amqp.Publishing{
|
|
|
|
amqp.Publishing{
|
|
|
|
ContentType: "text/plain",
|
|
|
|
ContentType: "text/plain",
|
|
|
|
Body: []byte(msg),
|
|
|
|
Body: []byte(msg),
|
|
|
|
Headers: header,
|
|
|
|
DeliveryMode: amqp.Persistent,
|
|
|
|
|
|
|
|
Timestamp: time.Now(),
|
|
|
|
|
|
|
|
Headers: header,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|