Răsfoiți Sursa

修改直播分成

dos 1 lună în urmă
părinte
comite
c0f0ffa06d

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

@@ -184,7 +184,13 @@ public class AppUserLiveDividedTask {
 
             finTranRecord.setToUid(appUser.getUserid());
             finTranRecord.setUid(appUser.getUserid());
-            finTranRecord.setFromUid(item.getUserId());
+            //主播记录礼物来源为刷礼物的人
+            if(null != superTran && i == 0){
+                finTranRecord.setFromUid(superTran.getUid());
+            }else{
+                finTranRecord.setFromUid(item.getUserId());
+            }
+
 
             finTranRecord.setSceneId1(0L);
             finTranRecord.setSceneId2(null);