Browse Source

激活奖励如果没有发放人则不执行

lcl 10 months ago
parent
commit
832833d9ea
1 changed files with 1 additions and 0 deletions
  1. 1 0
      AppStart/Helper/StatService.cs

+ 1 - 0
AppStart/Helper/StatService.cs

@@ -785,6 +785,7 @@ namespace MySystem
 
         public void doActiveReward(WebCMSEntities db, PosMerchantInfo merchant, PosMachinesTwo pos, int GetUserId, string ParentNav, int TopUserId, decimal ActPrize, int ChangeType = 0, int ActType = 0)
         {
+            if(GetUserId < 1) return;
             string MerNo = merchant.KqMerNo;
             //判断商户号是否为空,避免下次再有空商户的情况,导致奖励不发放
             if(string.IsNullOrEmpty(MerNo) && (pos.BrandId < 23 || pos.BrandId > 26))