gdl_123 5 månader sedan
förälder
incheckning
8166bf7b13

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

@@ -179,7 +179,7 @@ function LuaActorAttributeMgr:OnCheckActorCb(NeedGetActor)
     for i=1,#NeedGetActor do
         local IsHero = NeedGetActor[i].IsHero
         local Id = NeedGetActor[i].Id
-        table.insert( Senddata.actor_list,{is_hero_pet = IsHero,actor_id = tonumber(Id),attr_list = {}})
+        table.insert( Senddata.actor_list,{is_hero_pet = IsHero,actor_id = tostring(Id),attr_list = {}})
     end
     --LogError("Send...OnCheckActorCb.."..Inspect(Senddata))
     ManagerContainer.NetManager:SendMessage(ProtoMsgId.CS_ACTOR_ATTR_GET_REQ, Senddata)

+ 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,tonumber(recordTimeStamp))
+                self:SendBossRewardReq(killBossTime,tostring(recordTimeStamp))
             else
                 LogError('[wboy] curMapId : ' .. tostring(self.curMapId) .. ' curMapId : ' .. tostring(self.curLevelId) .. ' mapId : ' .. tostring(mapId) .. ' levelId : ' .. tostring(levelId))
             end