--******************************************************
--记录玩家道具兑换日志
--******************************************************
function LuaFnAuditExchangeLog(sceneId, selfId,nItemID,nItemNum)
local nowYear = GetTodayYear();
local nowMonth = GetTodayMonth();
nowMonth = nowMonth+1;
local nowDate = GetTodayDate();
local nHour = GetHour()
local nMinute = GetMinute()
local nName = LuaFnGetName( sceneId, selfId )
local nGuid = LuaFnGetGUID( sceneId, selfId)
local handle = openfile("./PlayerLog/Log_Exchange.txt", "a+")
if nil ~= handle then
write(handle, nowYear.."-"..nowMonth.."-"..nowDate.." "..nHour..":"..nMinute..","..nName..","..nGuid..","..nItemID..","..GetItemName(sceneId,nItemID)..","..nItemNum)
write(handle,tostring("\n"))
closefile(handle)
end
end