From ec1f07e7e2ec4a54b90088c16597ec1690371ab3 Mon Sep 17 00:00:00 2001 From: xxe Date: Sat, 15 Oct 2022 11:39:33 +0800 Subject: [PATCH] 1 --- HKLib/Interfaces/HKLibHelper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HKLib/Interfaces/HKLibHelper.cs b/HKLib/Interfaces/HKLibHelper.cs index 9293b76..2df59f1 100644 --- a/HKLib/Interfaces/HKLibHelper.cs +++ b/HKLib/Interfaces/HKLibHelper.cs @@ -4,6 +4,7 @@ using HKLib.RabbitMQ.Publisher; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using XExten.Advance.HttpFramework.MultiCommon; using XExten.Advance.HttpFramework.MultiFactory; using XExten.Advance.LinqFramework; @@ -41,7 +42,7 @@ namespace HKLib.Interfaces var res = data.ToModel()["data"]["isSuccess"].ToString().AsBool(); if (res) { - ServiceQueryPush.QueryPush.PushMQAsync(input, "TimeChanged", MQEnum.Push); + Task.Run(() => ServiceQueryPush.QueryPush.PushMQAsync(input, "TimeChanged", MQEnum.Push)); return res; } return false; @@ -164,7 +165,7 @@ namespace HKLib.Interfaces }).Build().RunStringFirst().ToModel()["data"]["isSuccess"].ToString().AsBool(); if (x) { - ServiceQueryPush.QueryPush.PushMQAsync(input, "CardStutasChanged", MQEnum.Top); + Task.Run(() => ServiceQueryPush.QueryPush.PushMQAsync(input, "CardStutasChanged", MQEnum.Top)); return x; } return false;