Browse Source

天谕音响加日志

lcl 1 year ago
parent
commit
a508b24aa2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      AppStart/Helper/TianYuVoiceHelper.cs

+ 3 - 0
AppStart/Helper/TianYuVoiceHelper.cs

@@ -72,7 +72,10 @@ namespace MySystem
             string signString = function.BuildQueryString(data);
             string signString = function.BuildQueryString(data);
             data.Add("sign", hmac_sha256(signString));
             data.Add("sign", hmac_sha256(signString));
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(data);
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(data);
+            function.WriteLog("请求地址:" + reqUrl, "天谕音响日志");
+            function.WriteLog("请求参数:" + req, "天谕音响日志");
             string result = function.PostWebRequest(reqUrl, req, "application/json");
             string result = function.PostWebRequest(reqUrl, req, "application/json");
+            function.WriteLog("响应数据:" + result, "天谕音响日志");
             return result;
             return result;
         }
         }