瀏覽代碼

Merge branch 'PL/develop-IES5' into develop

Li 2 年之前
父節點
當前提交
e988fa976f

+ 2 - 2
TEAMModelOS.SDK/Context/Attributes/Filter/ApiTokenAttribute.cs

@@ -246,12 +246,12 @@ namespace TEAMModelOS.Filter
                                                 //}
                                                 //else
                                                 bizVisit.apis.Add(new APIInfo() { name = $"{path}", upDate = udate });//记录加一下
-                                                await _azureCosmos.GetCosmosClient().GetContainer("TEAMModelOS", "Normal").ReplaceItemAsync<BizVisitCnt>(bizVisit, id, new Azure.Cosmos.PartitionKey("BizVisit"));
+                                                var resBiz = _azureCosmos.GetCosmosClient().GetContainer("TEAMModelOS", "Normal").ReplaceItemAsync<BizVisitCnt>(bizVisit, id, new Azure.Cosmos.PartitionKey("BizVisit")).Result;
                                             }
                                             else
                                             {
                                                 BizVisitCnt bizVisit = new() { id = id, visit = 1, apis = new List<APIInfo>() { new APIInfo() { name = $"{path}", upDate = udate } } };
-                                                await _azureCosmos.GetCosmosClient().GetContainer("TEAMModelOS", "Normal").CreateItemAsync<BizVisitCnt>(bizVisit, new Azure.Cosmos.PartitionKey("BizVisit"));
+                                                var resBiz = _azureCosmos.GetCosmosClient().GetContainer("TEAMModelOS", "Normal").CreateItemAsync<BizVisitCnt>(bizVisit, new Azure.Cosmos.PartitionKey("BizVisit")).Result;
                                             }
                                             //访问次数记录 结束
 

File diff suppressed because it is too large
+ 91 - 11
TEAMModelOS/Controllers/OpenApi/Business/BizOverallEducationController.cs