|
|
@@ -144,7 +144,8 @@ namespace MySystem
|
|
|
consumer.Received += (a, e) =>
|
|
|
{
|
|
|
string MsgContent = Encoding.Default.GetString(e.Body.ToArray());
|
|
|
- function.WriteLog(MsgContent);
|
|
|
+ function.WriteLog(MsgContent, "接收mq数据队列");
|
|
|
+ SycnSpBindService.Instance.SimDo(MsgContent);
|
|
|
channel.BasicAck(e.DeliveryTag, true); //收到回复后,RabbitMQ会直接在队列中删除这条消息
|
|
|
};
|
|
|
channel.BasicConsume(QueueName, false, consumer);
|