gdl_123 пре 6 месеци
родитељ
комит
b5c55b926e
2 измењених фајлова са 6 додато и 3 уклоњено
  1. 1 1
      Assets/Lua/Managers/LuaBattleMgr.lua
  2. 5 2
      Assets/Lua/UI/UIStory/UIStoryView.lua

+ 1 - 1
Assets/Lua/Managers/LuaBattleMgr.lua

@@ -1059,7 +1059,7 @@ function LuaBattleMgr:OnBattleWin(killboss, killBossTime, mapId, levelId, isPlay
         self.bKillBoss = false
         if not isPlayRecord then   --  and self.difficulty == 0
             if self.curMapId == mapId and self.curLevelId == levelId  then
-                self:SendBossRewardReq(killBossTime,recordTimeStamp)
+                self:SendBossRewardReq(killBossTime,tonumber(recordTimeStamp))
             else
                 LogError('[wboy] curMapId : ' .. tostring(self.curMapId) .. ' curMapId : ' .. tostring(self.curLevelId) .. ' mapId : ' .. tostring(mapId) .. ' levelId : ' .. tostring(levelId))
             end

+ 5 - 2
Assets/Lua/UI/UIStory/UIStoryView.lua

@@ -235,7 +235,10 @@ function UIStoryView:PlayStoryPerform()
 	self.curTalkDsc = nil
 	self.curTalkDscContent = nil
 	self.curTalkOverStatus = false
-
+	if talkList == nil then
+		--LogError("talkList = nil")
+		talkList = {}
+	end
 	if speekSite > 0 and curTalk.SpeakId ~= "" then
 		table.insert(talkList,1,curTalk)
 		self.scrollView.loopListView:SetListItemCount(#talkList, false);
@@ -598,7 +601,7 @@ function UIStoryView:OnDispose()
 
 		--self.scrollView.loopVerticalScrollRect:ClearCells()
 		self.scrollView.loopListView:Dispose();
-
+		--LogError("释放 talkList")
 		talkList = nil
 	end
 end