|
@@ -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;
|
|
|
}
|
|
|
//访问次数记录 结束
|
|
|
|