Commit 7f410429 刘韬

1

1 个父辈 8ecd930a
...@@ -440,15 +440,10 @@ namespace BLL ...@@ -440,15 +440,10 @@ namespace BLL
} }
bool updatereelid(Dictionary<string, string> key, out string errmsg) bool updatereelid(Dictionary<string, string> key, out string errmsg)
{ {
errmsg = "";
errmsg = "";
try try
{ {
foreach (var item in key) LogNet.log.Info($"接口上传信息 url: {config.HttpReelID}, data: {JsonConvert.SerializeObject(key)}");
{
LogNet.log.Info("接口上传信息(" + item.Key+":"+item.Value+")");
}
if (!string.IsNullOrEmpty(config.HttpReelID)) if (!string.IsNullOrEmpty(config.HttpReelID))
{ {
Dictionary<string, object> pairs = new Dictionary<string, object>(); Dictionary<string, object> pairs = new Dictionary<string, object>();
......
...@@ -79,9 +79,10 @@ namespace Model ...@@ -79,9 +79,10 @@ namespace Model
} }
request.AddJsonBody(jsonobject); request.AddJsonBody(jsonobject);
IRestResponse response = client.Execute(request); IRestResponse response = client.Execute(request);
string s = response.Content; string s = response.Content;
if (wlog) if (wlog)
LogNet.log.Info("Return:" + s); LogNet.log.Info("Return:" + s + "," + response.ErrorMessage);
return s; return s;
} }
private static string FormatContent(string s) private static string FormatContent(string s)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!