|
|
@@ -31,6 +31,7 @@ namespace MySystem
|
|
|
{
|
|
|
List<string> SaveDataBindIds = Utils.Instance.SaveDataBindIds();
|
|
|
SaveDataBindIds.Add("36");
|
|
|
+ SaveDataBindIds.Add("212");
|
|
|
WebCMSEntities spdb = new WebCMSEntities();
|
|
|
PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
|
|
|
MpMainModels2.WebCMSEntities mpdb = new MpMainModels2.WebCMSEntities();
|
|
|
@@ -106,6 +107,20 @@ namespace MySystem
|
|
|
// RedisDbconn.Instance.AddList("HaoDaPrizeDataQueue", "{\"brand_id\":36,\"ext_field\":\"" + act.Field3 + "\",\"pos_sn\":\"" + act.SnNo + "\",\"user_id\":" + pos.UserId + "}");
|
|
|
// }
|
|
|
}
|
|
|
+ if(act.ProductType == "212")
|
|
|
+ {
|
|
|
+ JavaProductModels.KxsMachine pos = javaprodb.KxsMachine.FirstOrDefault(m => m.PosSn == act.SnNo && m.UserId > 0);
|
|
|
+ if (pos != null)
|
|
|
+ {
|
|
|
+ Dictionary<string, object> prizeData = new Dictionary<string, object>();
|
|
|
+ prizeData.Add("brand_id", int.Parse(function.CheckInt(act.ProductType)));
|
|
|
+ prizeData.Add("deposit", decimal.Parse(function.CheckNum(act.SeoTitle)).ToString("f0"));
|
|
|
+ prizeData.Add("pos_sn", act.SnNo);
|
|
|
+ prizeData.Add("user_id", pos.UserId);
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(prizeData);
|
|
|
+ function.GetWebRequest("http://logic-executor-api.kexiaoshuang.com/noauth/prize/pushbyone?n=QUEUE_KXS_HAODA_PRIZE_CONFIG_DIVISION&m=" + req + "&ids=88");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
ActivateRecord edit = spdb.ActivateRecord.FirstOrDefault(m => m.Id == act.Id);
|
|
|
if (edit != null)
|