Commit b33dc292 authored by 黄奎's avatar 黄奎

页面修改

parent a97c6605
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Threading.Tasks;
namespace Edu.Common.Message namespace Edu.Common.Message
{ {
...@@ -64,6 +65,10 @@ namespace Edu.Common.Message ...@@ -64,6 +65,10 @@ namespace Edu.Common.Message
AppId = Common.Config.PushAppId, AppId = Common.Config.PushAppId,
IsRead=0, IsRead=0,
}; };
Task.Run(() =>
{
try
{
using (IConnection conn = GetConnectionFactory(rabbitConfig).CreateConnection()) using (IConnection conn = GetConnectionFactory(rabbitConfig).CreateConnection())
{ {
using (IModel channel = conn.CreateModel()) using (IModel channel = conn.CreateModel())
...@@ -77,6 +82,13 @@ namespace Edu.Common.Message ...@@ -77,6 +82,13 @@ namespace Edu.Common.Message
} }
} }
} }
catch (Exception ex)
{
Common.Plugin.LogHelper.Write(ex, "SendMessage");
}
});
}
/// <summary> /// <summary>
/// 批量推送 /// 批量推送
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment