|
@@ -153,47 +153,47 @@ namespace MySystem.Controllers
|
|
// AliyunPushHelper.Instance.DoSomeThing("{\"Account\":\"14726006947\",\"Device\":\"IOS\",\"Title\":\"测试推送\",\"Body\":\"客小爽推送功能即将上线\"}");
|
|
// AliyunPushHelper.Instance.DoSomeThing("{\"Account\":\"14726006947\",\"Device\":\"IOS\",\"Title\":\"测试推送\",\"Body\":\"客小爽推送功能即将上线\"}");
|
|
// string content = "{\"data_type\":\"bind\",\"data_content\":{\"pos_sn\":\"1014BS0023511\",\"mer_no\":\"15608798003\",\"id_card\":null,\"mer_name\":\"15608798003\",\"mer_mobile\":\"15608798003\",\"request_id\":\"2024102310381200098289115\",\"bind_time\":\"2024-10-23 10:38:12\",\"brand\":\"23\"}}";
|
|
// string content = "{\"data_type\":\"bind\",\"data_content\":{\"pos_sn\":\"1014BS0023511\",\"mer_no\":\"15608798003\",\"id_card\":null,\"mer_name\":\"15608798003\",\"mer_mobile\":\"15608798003\",\"request_id\":\"2024102310381200098289115\",\"bind_time\":\"2024-10-23 10:38:12\",\"brand\":\"23\"}}";
|
|
// PosPushHelper.Instance.DoSomeThing(content);
|
|
// PosPushHelper.Instance.DoSomeThing(content);
|
|
- SortedList<string, string> obj = new SortedList<string, string>();
|
|
|
|
- obj.Add("pos_sn", "LDN7HDQM365548961135");
|
|
|
|
- obj.Add("merch_no", "015330849562900");
|
|
|
|
- obj.Add("agent_id", "0000001");
|
|
|
|
- obj.Add("supplement_info", "");
|
|
|
|
- obj.Add("name", "时代电器经营部");
|
|
|
|
- obj.Add("phone", "");
|
|
|
|
- obj.Add("request_id", "ac76801a7b0773063ac20ece3f8ca6dc");
|
|
|
|
- obj.Add("device_model", "000002");
|
|
|
|
- obj.Add("term_to", "");
|
|
|
|
- obj.Add("bind_time", "2024-12-27 10:16:10");
|
|
|
|
- jm(obj, "bind");
|
|
|
|
-
|
|
|
|
// SortedList<string, string> obj = new SortedList<string, string>();
|
|
// SortedList<string, string> obj = new SortedList<string, string>();
|
|
- // obj.Add("agent_id","0000001");
|
|
|
|
- // obj.Add("busi_type","");
|
|
|
|
- // obj.Add("busi_sub_type","");
|
|
|
|
- // obj.Add("order_id","G1241227C03142143729");
|
|
|
|
- // obj.Add("trans_id","G1241227C03142143729");
|
|
|
|
- // obj.Add("merch_no","015330849562900");
|
|
|
|
- // obj.Add("term_no","");
|
|
|
|
- // obj.Add("pos_sn","LDN7HDQM365548961135");
|
|
|
|
- // obj.Add("refer_no","");
|
|
|
|
- // obj.Add("card_no","");
|
|
|
|
- // obj.Add("amount","48.00");
|
|
|
|
- // obj.Add("trans_time","2024-12-27 00:00:27");
|
|
|
|
- // obj.Add("longitude","0");
|
|
|
|
- // obj.Add("latitude","0");
|
|
|
|
- // obj.Add("ret_code","00");
|
|
|
|
- // obj.Add("ret_msg","交易成功");
|
|
|
|
- // obj.Add("area_code","");
|
|
|
|
- // obj.Add("fee_amount","0");
|
|
|
|
- // obj.Add("pay_type","");
|
|
|
|
- // jm(obj, "trade");
|
|
|
|
|
|
+ // obj.Add("pos_sn", "LDN7HDQM365548961135");
|
|
|
|
+ // obj.Add("merch_no", "015330849562900");
|
|
|
|
+ // obj.Add("agent_id", "0000001");
|
|
|
|
+ // obj.Add("supplement_info", "");
|
|
|
|
+ // obj.Add("name", "时代电器经营部");
|
|
|
|
+ // obj.Add("phone", "");
|
|
|
|
+ // obj.Add("request_id", "ac76801a7b0773063ac20ece3f8ca6dc");
|
|
|
|
+ // obj.Add("device_model", "000002");
|
|
|
|
+ // obj.Add("term_to", "");
|
|
|
|
+ // obj.Add("bind_time", "2024-12-27 10:16:10");
|
|
|
|
+ // jm(obj, "bind");
|
|
|
|
+
|
|
|
|
+ SortedList<string, string> obj = new SortedList<string, string>();
|
|
|
|
+ obj.Add("agent_id","0000001");
|
|
|
|
+ obj.Add("busi_type","");
|
|
|
|
+ obj.Add("busi_sub_type","");
|
|
|
|
+ obj.Add("order_id","G1241227C03142143729");
|
|
|
|
+ obj.Add("trans_id","G1241227C03142143729");
|
|
|
|
+ obj.Add("merch_no","015330849562900");
|
|
|
|
+ obj.Add("term_no","");
|
|
|
|
+ obj.Add("pos_sn","LDN7HDQM365548961135");
|
|
|
|
+ obj.Add("refer_no","");
|
|
|
|
+ obj.Add("card_no","");
|
|
|
|
+ obj.Add("amount","48.00");
|
|
|
|
+ obj.Add("trans_time","2024-12-27 00:00:27");
|
|
|
|
+ obj.Add("longitude","0");
|
|
|
|
+ obj.Add("latitude","0");
|
|
|
|
+ obj.Add("ret_code","00");
|
|
|
|
+ obj.Add("ret_msg","交易成功");
|
|
|
|
+ obj.Add("area_code","");
|
|
|
|
+ obj.Add("fee_amount","0");
|
|
|
|
+ obj.Add("pay_type","");
|
|
|
|
+ jm(obj, "trade");
|
|
|
|
|
|
return "ok";
|
|
return "ok";
|
|
}
|
|
}
|
|
|
|
|
|
public string jm(SortedList<string, string> obj, string type)
|
|
public string jm(SortedList<string, string> obj, string type)
|
|
{
|
|
{
|
|
- string NoticeUrl = "http://61.189.43.58:9092/prod-api/space/open/api/commerce/offline/business/data";
|
|
|
|
|
|
+ string NoticeUrl = "https://sy.sic-credit.com:9091/prod-api/space/open/api/commerce/offline/business/data";
|
|
string PushData = Newtonsoft.Json.JsonConvert.SerializeObject(obj);
|
|
string PushData = Newtonsoft.Json.JsonConvert.SerializeObject(obj);
|
|
LogHelper.Instance.WriteLog("原始数据:" + PushData, "推送数据日志");
|
|
LogHelper.Instance.WriteLog("原始数据:" + PushData, "推送数据日志");
|
|
string content = EncryptHelper.Encrypt1(obj, "KTVpzn70n3Bv7w04");
|
|
string content = EncryptHelper.Encrypt1(obj, "KTVpzn70n3Bv7w04");
|