|
@@ -16,11 +16,11 @@ namespace MySystem
|
|
|
{
|
|
|
}
|
|
|
|
|
|
- string NoticeUrl = "http://cybsp.888cyb.com/v1/cybsp/transNotify/hd";
|
|
|
+ string NoticeUrl = "http://cybsp.888cyb.com/v1/cybsp/{path}/hd";
|
|
|
string AesSecret = "kvS4TIRh7Yulg4nr";
|
|
|
|
|
|
//要执行的方法
|
|
|
- public void Do(SortedList<string, string> obj)
|
|
|
+ public void Do(SortedList<string, string> obj, string path = "transNotify")
|
|
|
{
|
|
|
string PushData = "";
|
|
|
string PushDataEncrypt = "";
|
|
@@ -36,8 +36,8 @@ namespace MySystem
|
|
|
string requestJson = Newtonsoft.Json.JsonConvert.SerializeObject(obj);
|
|
|
PushDataEncrypt = requestJson;
|
|
|
LogHelper.Instance.WriteLog("请求参数:" + PushDataEncrypt, "好哒推送数据日志");
|
|
|
- LogHelper.Instance.WriteLog("请求地址:" + NoticeUrl, "好哒推送数据日志");
|
|
|
- string result = function.PostWebRequest(NoticeUrl, requestJson, "application/json");
|
|
|
+ LogHelper.Instance.WriteLog("请求地址:" + NoticeUrl.Replace("{path}", path), "好哒推送数据日志");
|
|
|
+ string result = function.PostWebRequest(NoticeUrl.Replace("{path}", path), requestJson, "application/json");
|
|
|
LogHelper.Instance.WriteLog("返回报文:" + result + "\n\n", "好哒推送数据日志");
|
|
|
}
|
|
|
}
|