【log】日志调整

dev_chengFeng
ZhangBiao 2021-11-30 11:19:28 +08:00
parent bdb02e9fa4
commit 239d5bbb36
6 changed files with 1131 additions and 1068 deletions

File diff suppressed because it is too large Load Diff

View File

@ -230,12 +230,12 @@ end
function this.SaveNewChatListToLocal() function this.SaveNewChatListToLocal()
local str = table.concat(this.NewChatFriendList, "|") local str = table.concat(this.NewChatFriendList, "|")
PlayerPrefs.SetString("NewChatList" .. PlayerManager.uid, str) PlayerPrefs.SetString("NewChatList" .. PlayerManager.uid, str)
Log("信息存储到本地:"..str) Log("好友信息存储到本地:"..str)
end end
function this.LoadNewChatListFromLocal() function this.LoadNewChatListFromLocal()
local str = PlayerPrefs.GetString("NewChatList" .. PlayerManager.uid) local str = PlayerPrefs.GetString("NewChatList" .. PlayerManager.uid)
Log("读取本地信息:"..str) Log("读取本地好友信息:"..str)
local list = string.split(str, "|") local list = string.split(str, "|")
this.NewChatFriendList = {} this.NewChatFriendList = {}
-- 字符串转数字 -- 字符串转数字

View File

@ -113,7 +113,7 @@ end
function this.AddUIList(jumpId) function this.AddUIList(jumpId)
table.insert(this.OpenUIList,jumpId) table.insert(this.OpenUIList,jumpId)
for i,v in ipairs(this.OpenUIList) do for i,v in ipairs(this.OpenUIList) do
Log("AddUIList:"..v) -- Log("AddUIList:"..v)
end end
end end
function this.RemoveUIList() function this.RemoveUIList()
@ -121,7 +121,7 @@ function this.RemoveUIList()
table.remove(this.OpenUIList,#this.OpenUIList) table.remove(this.OpenUIList,#this.OpenUIList)
end end
for i,v in ipairs(this.OpenUIList) do for i,v in ipairs(this.OpenUIList) do
Log("RemoveUIList:"..v) -- Log("RemoveUIList:"..v)
end end
end end
function this.ChangeUIList(jumpId) function this.ChangeUIList(jumpId)
@ -131,7 +131,7 @@ function this.ChangeUIList(jumpId)
this.OpenUIList[#this.OpenUIList] = jumpId this.OpenUIList[#this.OpenUIList] = jumpId
end end
for i,v in ipairs(this.OpenUIList) do for i,v in ipairs(this.OpenUIList) do
Log("ChangeUIList:"..v) -- Log("ChangeUIList:"..v)
end end
end end

View File

@ -125,7 +125,7 @@ function this.RefreshAccumRechargeValue(goodsId)
end end
function this.SetAccumRechargeValue(value, flag) function this.SetAccumRechargeValue(value, flag)
Log("充值金额:"..value) -- Log("充值金额:"..value)
if flag then if flag then
AccumRechargeValue = AccumRechargeValue + value AccumRechargeValue = AccumRechargeValue + value
CheckRedPointStatus(RedPointType.FirstRecharge) CheckRedPointStatus(RedPointType.FirstRecharge)

View File

@ -55,10 +55,7 @@ function this.LoginRequest(openId, func)
local data = buffer:DataByte() local data = buffer:DataByte()
local msg = PlayerInfoProto_pb.LoginResponse() local msg = PlayerInfoProto_pb.LoginResponse()
msg:ParseFromString(data) msg:ParseFromString(data)
Log("resultCode:"..tostring(msg.resultCode).." newToken:"..tostring(msg.newToken))
Log("resultCode : " .. msg.resultCode)
Log("newToken : " .. msg.newToken)
if msg.resultCode == 0 then if msg.resultCode == 0 then
--成功登录 --成功登录
Log("成功登录!!!!!!") Log("成功登录!!!!!!")

View File

@ -90,7 +90,6 @@ function this.RefreshChargeMoney(chargedNum, isLogin)
lastCharged = chargedNum lastCharged = chargedNum
--刷新下签到红点 --刷新下签到红点
CheckRedPointStatus(RedPointType.CumulativeSignIn) CheckRedPointStatus(RedPointType.CumulativeSignIn)
Log("已充值金额" .. chargedNum)
end end
-- 获得累充数量 -- 获得累充数量
@ -100,7 +99,7 @@ end
-- 根据充值数量设置Vip等级 -- 根据充值数量设置Vip等级
function this.SetLevelByCost(cost) function this.SetLevelByCost(cost)
Log("花费:" .. cost) -- Log("花费:" .. cost)
local level = minLevel local level = minLevel
if cost <= vipLevelConfig[minLevel].MoneyLimit then if cost <= vipLevelConfig[minLevel].MoneyLimit then
level = minLevel level = minLevel
@ -116,12 +115,8 @@ function this.SetLevelByCost(cost)
end end
end end
end end
Log("vip等级:" .. level)
level = level > maxLevel and maxLevel or level level = level > maxLevel and maxLevel or level
Log(string.format("累充数:%s对应的Vip等级:%s", cost, level)) Log(string.format("已充值金额:%s 对应的Vip等级:%s", cost, level))
return level return level
end end
@ -183,7 +178,7 @@ end
--五点刷新数据 --五点刷新数据
function this.FiveAMRefreshLocalData(hadTakeDailyBox) function this.FiveAMRefreshLocalData(hadTakeDailyBox)
Log("5点刷新数据") Log("Vip,5点刷新数据")
VipManager.SetTakeDailyBoxStatus(hadTakeDailyBox) VipManager.SetTakeDailyBoxStatus(hadTakeDailyBox)
--通知Vip界面刷新数据 --通知Vip界面刷新数据
MapTrialManager.RefreshAttachVipData() MapTrialManager.RefreshAttachVipData()