Procházet zdrojové kódy

function 新增参数

zhouj1203@hotmail.com před 3 roky
rodič
revize
4bbb10a3d0

+ 4 - 1
TEAMModelFunction/MonitorCosmosDB.cs

@@ -71,6 +71,7 @@ namespace TEAMModelFunction
                             string scope = input.GetPropertyValue<string>("scope");
                             string name = input.GetPropertyValue<string>("name");
                             int? status = input.GetPropertyValue<int?>("status");
+                            int? publish = input.GetPropertyValue<int?>("publish");
                             var data = new TriggerData
                             {
                                 stime = stime,
@@ -83,7 +84,8 @@ namespace TEAMModelFunction
                                 ttl = ttl,
                                 id = input.Id,
                                 status = status,
-                                name = name
+                                name = name,
+                                publish = publish
                             };
 #if DEBUG
                             await _dingDing.SendBotMsg($"{Environment.GetEnvironmentVariable("Option:Location")}-CosmosDBTrigger,{pk}触发变更\n{data.ToJsonString()}",
@@ -134,5 +136,6 @@ namespace TEAMModelFunction
         public string scope { get; set; }
         public int ttl { get; set; }
         public string id { get; set; }
+        public int? publish { get; set; }
     }
 }

+ 1 - 1
TEAMModelFunction/TriggerStudy.cs

@@ -20,7 +20,7 @@ namespace TEAMModelFunction
         {
             try
             {
-                if ((tdata.status != null && tdata.status.Value == 404) || tdata.ttl > 0)
+                if ((tdata.status != null && tdata.status.Value == 404) || tdata.ttl > 0 || tdata.publish == 1)
                 {
                     return;
                 }