|
@@ -334,18 +334,21 @@ namespace MySystem
|
|
|
{
|
|
|
pos.ActivationState = 1;
|
|
|
pos.ActivationTime = DateTime.Now;
|
|
|
+ function.WriteLog("机具" + pos.PosSn, "开机奖励在激活中监控");
|
|
|
PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
|
|
|
if (merchant != null)
|
|
|
{
|
|
|
merchant.ActiveStatus = 1;
|
|
|
merchant.MerStandardDate = DateTime.Now;
|
|
|
db.SaveChanges();
|
|
|
+ function.WriteLog("商户" + merchant.KqMerNo, "开机奖励在激活中监控");
|
|
|
|
|
|
// 推荐王逻辑(激活)
|
|
|
string SendData = "{\"Kind\":\"3\",\"Data\":{\"UserId\":\"" + pos.BuyUserId + "\",\"PosId\":\"" + pos.Id + "\",\"TradeMonth\":\"" + DateTime.Now.ToString("yyyyMM") + "\"}}";
|
|
|
RedisDbconn.Instance.AddList("RecommendActStatQueue", SendData);
|
|
|
|
|
|
//发放开机奖励
|
|
|
+ function.WriteLog("首台" + pos.IsFirst, "开机奖励在激活中监控");
|
|
|
if(pos.IsFirst == 1)
|
|
|
{
|
|
|
RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString());
|