ソースを参照

区分sls分类

lcl 7 ヶ月 前
コミット
fe82644518
1 ファイル変更4 行追加0 行削除
  1. 4 0
      Controllers/HomeController.cs

+ 4 - 0
Controllers/HomeController.cs

@@ -80,6 +80,10 @@ namespace MySystem.Controllers
             string topic = condiList[0];
             string keyword = condiList[1];
             string month = condiList[2];
+            if(topic.EndsWith("推送消息"))
+            {
+                logstore = "spserver";
+            }
             IList<IDictionary<string, string>> logs = await SLS.GetLogs(logstore, topic, "* and content: " + keyword, DateTimeOffset.Now.AddMonths(-int.Parse(month)));
             return logs;
         }