|
|
@@ -139,30 +139,31 @@ namespace MySystem.Controllers
|
|
|
// {
|
|
|
// function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_LKB_PRO_PRIZE_CONFIG_DIVISION&m=" + sub + "&ids=69");
|
|
|
// }
|
|
|
+ // string[] data = function.ReadInstance("tmp/1.txt").Split('\n');
|
|
|
+ // Dictionary<string, string> sn = new Dictionary<string, string>();
|
|
|
+ // foreach(string sub in data)
|
|
|
+ // {
|
|
|
+ // string[] subdata = sub.Split(',');
|
|
|
+ // sn.Add(subdata[0], subdata[1]);
|
|
|
+ // }
|
|
|
string[] data = function.ReadInstance("tmp/1.txt").Split('\n');
|
|
|
- Dictionary<string, string> sn = new Dictionary<string, string>();
|
|
|
- foreach(string sub in data)
|
|
|
- {
|
|
|
- string[] subdata = sub.Split(',');
|
|
|
- sn.Add(subdata[0], subdata[1]);
|
|
|
- }
|
|
|
- data = function.ReadInstance("tmp/2.txt").Split('\n');
|
|
|
foreach(string sub in data)
|
|
|
{
|
|
|
- string[] subdata = sub.Split(',');
|
|
|
- if(sn.ContainsKey(subdata[0]))
|
|
|
- {
|
|
|
- string pos = subdata[0];
|
|
|
- string userId = sn[subdata[0]];
|
|
|
- string kind = subdata[2];
|
|
|
- string amount = subdata[1];
|
|
|
- string listId = "";
|
|
|
- if(kind == "833_01") listId = "81";
|
|
|
- if(kind == "833_02") listId = "82";
|
|
|
- listId += ",83";
|
|
|
- string m = "{\"brand_id\":36,\"ext_field\":\"" + kind + "\",\"pos_sn\":\"" + pos + "\",\"user_id\":" + userId + ",\"prize\":\"" + amount + "\"}";
|
|
|
- function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + m + "&ids=" + listId);
|
|
|
- }
|
|
|
+ // string[] subdata = sub.Split(',');
|
|
|
+ // if(sn.ContainsKey(subdata[0]))
|
|
|
+ // {
|
|
|
+ // string pos = subdata[0];
|
|
|
+ // string userId = sn[subdata[0]];
|
|
|
+ // string kind = subdata[2];
|
|
|
+ // string amount = subdata[1];
|
|
|
+ // string listId = "";
|
|
|
+ // if(kind == "833_01") listId = "81";
|
|
|
+ // if(kind == "833_02") listId = "82";
|
|
|
+ // listId += ",83";
|
|
|
+ // string m = "{\"brand_id\":36,\"ext_field\":\"" + kind + "\",\"pos_sn\":\"" + pos + "\",\"user_id\":" + userId + ",\"prize\":\"" + amount + "\"}";
|
|
|
+ // function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + m + "&ids=" + listId);
|
|
|
+ // }
|
|
|
+ string s = function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_LKB_PRO_PRIZE_CONFIG_DIVISION&m=" + sub + "&ids=72,73,75");
|
|
|
}
|
|
|
return "ok";
|
|
|
}
|