diff --git a/Assets/Lua/UI/UIChat/UIChatView.lua b/Assets/Lua/UI/UIChat/UIChatView.lua index 4d03547f3..e6186ffcf 100644 --- a/Assets/Lua/UI/UIChat/UIChatView.lua +++ b/Assets/Lua/UI/UIChat/UIChatView.lua @@ -1011,7 +1011,7 @@ function UIChatView:RefreshMeTab() local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId)) if storyNpcCfg and storyNpcCfg.Type == 1 then wiftNum = wiftNum + 1 - table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId}) + table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId, head=storyNpcCfg.Head}) end end table.insert(contactDatas, 1, {type = 2, name = I18N.T("妻子"), num = wiftNum}) @@ -1025,7 +1025,7 @@ function UIChatView:RefreshMeTab() local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId)) if storyNpcCfg and storyNpcCfg.Type == 2 then loverNum = loverNum + 1 - table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId}) + table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId, head=storyNpcCfg.Head}) end end loverGroup.num = loverNum @@ -1039,7 +1039,7 @@ function UIChatView:RefreshMeTab() local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId)) if storyNpcCfg and storyNpcCfg.Type == 3 then paNum = paNum + 1 - table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId}) + table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId, head=storyNpcCfg.Head}) end end paGroup.num = paNum