Parcourir la source

修改直播分成

dos il y a 1 mois
Parent
commit
889f4e95c2

+ 3 - 3
game-business/src/main/java/com/game/business/task/AppUserLiveDividedTask.java

@@ -92,10 +92,10 @@ public class AppUserLiveDividedTask {
         }
         liveRateList.add(userAgent);
 
-        // 只需要获取直属上级
+        /*// 只需要获取直属上级
         if(num == 1){
             return;
-        }
+        }*/
         num ++;
         getLiveRate(userAgent.getPid(), liveRateList, num);
 
@@ -185,7 +185,7 @@ public class AppUserLiveDividedTask {
             finTranRecord.setToUid(appUser.getUserid());
             finTranRecord.setUid(appUser.getUserid());
             //主播记录礼物来源为刷礼物的人
-            if(null != superTran && i == 0){
+            if(null != superTran && item.getUserId().equals(appUser.getUserid())){
                 finTranRecord.setFromUid(superTran.getUid());
             }else{
                 finTranRecord.setFromUid(item.getUserId());