Commit 680fd892 authored by Maodashu's avatar Maodashu

增加部分日志

parent b1094d43
...@@ -152,6 +152,7 @@ namespace OTWebSocket.API.Services ...@@ -152,6 +152,7 @@ namespace OTWebSocket.API.Services
{ {
string endpoint = $"/mao/mongo/update/{order.OrderId}"; string endpoint = $"/mao/mongo/update/{order.OrderId}";
JObject payload = JObject.FromObject(order); JObject payload = JObject.FromObject(order);
_logger.Debug($"[更新MongoDB订单信息] url:{endpoint}\ncontent:{payload.ToString()}");
HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Put, _apiBaseUrl + endpoint); HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Put, _apiBaseUrl + endpoint);
req.Headers.Add("Authorization", psw); req.Headers.Add("Authorization", psw);
req.Content = new StringContent(payload.ToString(), Encoding.UTF8, "application/json"); req.Content = new StringContent(payload.ToString(), Encoding.UTF8, "application/json");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment