|
@@ -48,9 +48,16 @@ namespace MySystem
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void ActiveReward(JobMqMsg jobInfo)
|
|
|
+
|
|
|
+ public void StartActiveReward()
|
|
|
+ {
|
|
|
+ Thread th = new Thread(ActiveReward);
|
|
|
+ th.IsBackground = true;
|
|
|
+ th.Start();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void ActiveReward()
|
|
|
{
|
|
|
- string content = "";
|
|
|
try
|
|
|
{
|
|
|
dosomething3();
|
|
@@ -59,18 +66,9 @@ namespace MySystem
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- if (!string.IsNullOrEmpty(content))
|
|
|
- {
|
|
|
- Dictionary<string, string> data = new Dictionary<string, string>();
|
|
|
- data.Add("ErrTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
|
- data.Add("ErrMsg", ex.ToString());
|
|
|
- function.WriteLog(Newtonsoft.Json.JsonConvert.SerializeObject(data), "public_err");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- function.WriteLog(DateTime.Now.ToString() + ":" + ex.ToString(), "public_service");
|
|
|
- }
|
|
|
+ function.WriteLog(DateTime.Now.ToString() + ":" + ex.ToString(), "实时处理激活记录异常");
|
|
|
}
|
|
|
+ Thread.Sleep(30000);
|
|
|
}
|
|
|
|
|
|
|