|
|
@@ -214,12 +214,44 @@ namespace MySystem.Controllers
|
|
|
// MerMobile = "139****2383",
|
|
|
// CreateTime = DateTime.Parse("2025-06-27 10:36:00"),
|
|
|
// }, "33");
|
|
|
- string FeeRate = "0.63";
|
|
|
- string FeeAmt = "0";
|
|
|
- Dictionary<string, string> fee = PosPushDataNewHelper.GetFee("00000602H3R000100392323", FeeRate, FeeAmt, "1");
|
|
|
- fee = PosPushDataNewHelper.GetFee2("00000602H3R000100392323", FeeRate, FeeAmt, "1");
|
|
|
- FeeRate = fee["FeeRate"];
|
|
|
- FeeAmt = fee["FeeAmt"];
|
|
|
+ // string FeeRate = "0.63";
|
|
|
+ // string FeeAmt = "0";
|
|
|
+ // Dictionary<string, string> fee = PosPushDataNewHelper.GetFee("00000602H3R000100392323", FeeRate, FeeAmt, "1");
|
|
|
+ // fee = PosPushDataNewHelper.GetFee2("00000602H3R000100392323", FeeRate, FeeAmt, "1");
|
|
|
+ // FeeRate = fee["FeeRate"];
|
|
|
+ // FeeAmt = fee["FeeAmt"];
|
|
|
+
|
|
|
+
|
|
|
+ // Dictionary<string, int> userids = new Dictionary<string, int>();
|
|
|
+ // string userString = function.ReadInstance("tmpdata/2.txt");
|
|
|
+ // string[] user = userString.Split('\n');
|
|
|
+ // foreach (string item in user)
|
|
|
+ // {
|
|
|
+ // string[] userInfo = item.Split('|');
|
|
|
+ // userids.Add(userInfo[0], int.Parse(userInfo[1]));
|
|
|
+ // }
|
|
|
+ string content = function.ReadInstance("tmpdata/1.txt");
|
|
|
+ string[] list = content.Split('\n');
|
|
|
+ foreach(string line in list)
|
|
|
+ {
|
|
|
+ string[] lineData = line.Split('|');
|
|
|
+ string SnNo = lineData[0];
|
|
|
+ string PrizeKind = "995";
|
|
|
+ // decimal PrizeAmt = decimal.Parse(function.CheckNum(lineData[2]));
|
|
|
+ int BrandId = int.Parse(function.CheckInt(lineData[2]));
|
|
|
+ int UserId = int.Parse(function.CheckInt(lineData[1]));
|
|
|
+ Dictionary<string, object> prizeData = new Dictionary<string, object>();
|
|
|
+ prizeData.Add("brand_id", BrandId);
|
|
|
+ prizeData.Add("ext_field", PrizeKind);
|
|
|
+ prizeData.Add("pos_sn", SnNo);
|
|
|
+ prizeData.Add("user_id", UserId);
|
|
|
+ // prizeData.Add("prize", PrizeAmt);
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(prizeData);
|
|
|
+ // string ids = PrizeKind == "833_02" ? "82" : "81";
|
|
|
+ // function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + req + "&ids=" + ids + ",83");
|
|
|
+ function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + req + "&ids=83");
|
|
|
+ }
|
|
|
+
|
|
|
return "ok";
|
|
|
}
|
|
|
|