From b923772dbfdb2c5a5a7b42190bac092098ec82a1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 五月 2022 17:00:32 +0800
Subject: [PATCH] 9415 【BT】【后端】古神战场(修复GM命令增加虚拟玩家数据时可能导致多次结算bug)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTalk.py |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTalk.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTalk.py
index 18a73a1..a1c8215 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTalk.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTalk.py
@@ -453,12 +453,13 @@
     # 等级
     extraValueStr += GetTalkExtraValueStar(ShareDefine.Def_TalkExtraValue_Bit_LV) % player.GetLV()
     # 伴侣信息
-    coupleName, bridePriceMaxID = "", 0
-    socialPlayer = PyDataManager.GetPersonalSocialManager().GetSocialPlayer(playerID)
-    if socialPlayer and socialPlayer.GetCoupleID():
-        coupleName = socialPlayer.GetCoupleName()
-        bridePriceMaxID = socialPlayer.GetBridePriceMaxID()
-    extraValueStr = "%s|%s|%s" % (extraValueStr, coupleName, bridePriceMaxID)
+    coupleName, coupleJob, bridePriceMaxID = "", 1, 0
+    couple = PyDataManager.GetDBPyCoupleManager().GetCouple(playerID)
+    if couple:
+        coupleName = couple.GetCoupleName(playerID)
+        coupleJob = couple.GetCoupleJob(playerID)
+        bridePriceMaxID = couple.BridePriceMaxID
+    extraValueStr = "%s|%s|%s|%s" % (extraValueStr, coupleName, coupleJob, bridePriceMaxID)
     return extraValueStr
 
 

--
Gitblit v1.8.0