【鸿蒙阵】增加logerror

dev_chengFeng
ZhangBiao 2021-07-08 15:51:10 +08:00
parent 52a7b26e0a
commit 30f2a8cb1a
2 changed files with 8 additions and 14 deletions

View File

@ -166,7 +166,6 @@ function this.HongMengIndication(buffer)
local data = buffer:DataByte() local data = buffer:DataByte()
local msg = HeroInfoProto_pb.HongmengInfoIndication() local msg = HeroInfoProto_pb.HongmengInfoIndication()
msg:ParseFromString(data) msg:ParseFromString(data)
--LogGreen("更新数据")
if msg.hongmengTabletMax ~= 0 then if msg.hongmengTabletMax ~= 0 then
-- body -- body
@ -174,11 +173,14 @@ function this.HongMengIndication(buffer)
HarmonyManager:SetHongMengTowerUpLimit(msg.hongmengTabletMax) HarmonyManager:SetHongMengTowerUpLimit(msg.hongmengTabletMax)
end end
if msg.hongmengGuards then if msg.hongmengGuards then
-- body LogError("鸿蒙阵更新数据的Indication..##msg.hongmengGuards:"..tostring(#msg.hongmengGuards))
-- for i = 1, #msg.hongmengGuards do for i = 1, #msg.hongmengGuards do
-- -- body if msg.hongmengGuards[i].heroId == "" then
-- print(HeroManager.GetSingleHeroData(msg.hongmengGuards[i].heroId).name) Log("鸿蒙守卫:"..i.."为nil")
-- end else
Log("鸿蒙守卫:"..i..HeroManager.GetSingleHeroData(msg.hongmengGuards[i].heroId).name)
end
end
HarmonyManager.UpdateHongMengDataGuards(msg.hongmengGuards) HarmonyManager.UpdateHongMengDataGuards(msg.hongmengGuards)
end end

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 88ae94ae510d46947966f1c53d98556f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: