Explorar o código

天谕音响加日志

lcl hai 1 ano
pai
achega
a508b24aa2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      AppStart/Helper/TianYuVoiceHelper.cs

+ 3 - 0
AppStart/Helper/TianYuVoiceHelper.cs

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