|
|
@@ -339,33 +339,34 @@ namespace MySystem
|
|
|
Field2 = MerKind,
|
|
|
Field3 = PrizeAmt,
|
|
|
Field4 = DepositActCode,
|
|
|
+ SeoKeyword = PrizeKind,
|
|
|
}).Entity;
|
|
|
db.SaveChanges();
|
|
|
}
|
|
|
|
|
|
- if ((PrizeKind == "830_21" || PrizeKind == "830_22" || PrizeKind == "833_01" || PrizeKind == "833_02" || PrizeKind == "995_21" || PrizeKind == "995_22" || PrizeKind == "995") && !string.IsNullOrEmpty(PrizeAmt) && decimal.Parse(function.CheckInt(PrizeAmt)) > 0)
|
|
|
- {
|
|
|
- JavaProductModels.KxsMachine pos = javauserdb.KxsMachine.FirstOrDefault(m => m.PosSn == SnNo && m.UserId > 0);
|
|
|
- if(pos != null)
|
|
|
- {
|
|
|
- Dictionary<string, object> prizeData = new Dictionary<string, object>();
|
|
|
- prizeData.Add("brand_id", 36);
|
|
|
- prizeData.Add("ext_field", PrizeKind);
|
|
|
- prizeData.Add("pos_sn", SnNo);
|
|
|
- prizeData.Add("user_id", pos.UserId);
|
|
|
- prizeData.Add("prize", PrizeAmt);
|
|
|
- string req = Newtonsoft.Json.JsonConvert.SerializeObject(prizeData);
|
|
|
- if(PrizeKind == "833_01" || PrizeKind == "833_02")
|
|
|
- {
|
|
|
- string ids = PrizeKind == "833_01" ? "81" : "82";
|
|
|
- function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + req + "&ids=" + ids + ",83");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("HaoDaPrizeDataQueue", req);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // if ((PrizeKind == "830_21" || PrizeKind == "830_22" || PrizeKind == "833_01" || PrizeKind == "833_02" || PrizeKind == "995_21" || PrizeKind == "995_22" || PrizeKind == "995") && !string.IsNullOrEmpty(PrizeAmt) && decimal.Parse(function.CheckInt(PrizeAmt)) > 0)
|
|
|
+ // {
|
|
|
+ // JavaProductModels.KxsMachine pos = javauserdb.KxsMachine.FirstOrDefault(m => m.PosSn == SnNo && m.UserId > 0);
|
|
|
+ // if(pos != null)
|
|
|
+ // {
|
|
|
+ // Dictionary<string, object> prizeData = new Dictionary<string, object>();
|
|
|
+ // prizeData.Add("brand_id", 36);
|
|
|
+ // prizeData.Add("ext_field", PrizeKind);
|
|
|
+ // prizeData.Add("pos_sn", SnNo);
|
|
|
+ // prizeData.Add("user_id", pos.UserId);
|
|
|
+ // prizeData.Add("prize", PrizeAmt);
|
|
|
+ // string req = Newtonsoft.Json.JsonConvert.SerializeObject(prizeData);
|
|
|
+ // if(PrizeKind == "833_01" || PrizeKind == "833_02")
|
|
|
+ // {
|
|
|
+ // string ids = PrizeKind == "833_01" ? "81" : "82";
|
|
|
+ // function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + req + "&ids=" + ids + ",83");
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
+ // RedisDbconn.Instance.AddList("HaoDaPrizeDataQueue", req);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
MpMainModels2.HdDepositTmp edit = mpdb2.HdDepositTmp.FirstOrDefault(m => m.SnNo == SnNo);
|
|
|
if (edit != null)
|