Skip to content

Commit

Permalink
应数据组要求加入埋点第四个字段
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith-avatar-changoowu committed Jul 12, 2021
1 parent 915f134 commit 7c68209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end

---触发埋点相应的事件调用 CloudLogUtil.UploadLog('', '' .. )
---@param _key string 埋点的键
function CloudLogUtil.UploadLog(_key, _action, _table)
function CloudLogUtil.UploadLog(_key, _action, _table,_Suid)
pcall(
function()
--table.MergeTables({action = _action}, _table or {})
Expand All @@ -22,9 +22,9 @@ function CloudLogUtil.UploadLog(_key, _action, _table)
end
local arg = LuaJsonUtil:encode(action)
if localPlayer then
TrackService.CloudLogFromClient({_key, CloudLogUtil.gameId, arg})
TrackService.CloudLogFromClient({_key, CloudLogUtil.gameId, arg, localPlayer.UserId})
else
TrackService.CloudLogFromServer({_key, CloudLogUtil.gameId, arg})
TrackService.CloudLogFromServer({_key, CloudLogUtil.gameId, arg, ''})
end
end
)
Expand Down
Binary file modified Smap/Social Island-new 3C.smap
Binary file not shown.

0 comments on commit 7c68209

Please sign in to comment.