lcl 1 рік тому
батько
коміт
310339ca9b
1 змінених файлів з 9 додано та 3 видалено
  1. 9 3
      AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

+ 9 - 3
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -575,9 +575,6 @@ namespace MySystem
                                         //     string Send = "{\"Kind\":\"4\",\"Data\":{\"PosId\":\"" + pos.Id + "\",\"TradeMonth\":\"" + trade.CreateDate.Value.ToString("yyyyMM") + "\",\"TradeAmount\":\"" + TradeAmount + "\"}}";
                                         //     RedisDbconn.Instance.AddList("RecommendActStatQueue", Send);
                                         // }
-
-                                        //发放奖励MQ
-                                        PrizeSetHelper.Do("1", pos.PosSn);
                                     }
                                     TradeRecord edit = spdb.TradeRecord.FirstOrDefault(m => m.Id == trade.Id);
                                     if (edit != null)
@@ -878,6 +875,12 @@ namespace MySystem
                     merchant.MerStandardDate = now;
                     db.SaveChanges();
 
+                    if(pos.BrandId != 14)
+                    {
+                        //发放奖励MQ
+                        PrizeSetHelper.Do("1", pos.PosSn);
+                    }
+
                     Utils.Instance.PrizeRecord(1, pos.PosSn, "已关联");
                     //发放开机奖励
                     Utils.Instance.PrizeRecord(1, pos.PosSn, "条件:绑定时间不超过" + CheckDays + "天;当前绑定时间:" + pos.BindingTime.ToString() + "");
@@ -976,6 +979,9 @@ namespace MySystem
             {
                 Utils.Instance.PrizeRecord(1, pos.PosSn, "满足条件,发放盟主开机奖励");
                 RedisDbconn.Instance.AddList("LeaderRewardQueue", pos.Id.ToString());
+
+                //发放奖励MQ
+                PrizeSetHelper.Do("1", pos.PosSn);
             }
         }