소스 검색

押金推送,服务费奖励发放单独调用方法

lcl 10 달 전
부모
커밋
64a04c6d59
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      AppStart/Helper/StatService.cs

+ 9 - 2
AppStart/Helper/StatService.cs

@@ -3360,9 +3360,16 @@ namespace MySystem
                         TopUserId = int.Parse(ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
                     }
                     function.WriteLog("发放给:" + GetUserId, "服务费奖励发放日志");
-                    if(!db.ActiveReward.Any(m => m.KqSnNo == pos.PosSn && m.ActType == 1))
+                    if((pos.BrandId == 12 || pos.BrandId == 13) && string.IsNullOrEmpty(merchant.KqMerNo))
                     {
-                        doActiveRewardFunc(db, merchant, pos, GetUserId, user.ParentNav, TopUserId, ActPrize, 0, 1);
+                        if(!db.ActiveReward.Any(m => m.KqSnNo == pos.PosSn && m.ActType == 1))
+                        {
+                            doActiveRewardFunc(db, merchant, pos, GetUserId, user.ParentNav, TopUserId, ActPrize, 0, 1);
+                        }
+                    }
+                    else
+                    {
+                        doActiveReward(db, merchant, pos, GetUserId, user.ParentNav, TopUserId, ActPrize, 0, 1);
                     }
                     function.WriteLog("已发放", "服务费奖励发放日志");
                 }