无法将 event.alert 保存到 GGData。

我正在使用来自此处的GGData([GGData](https://github.com/GlitchGames/GGData))。它非常好用。直到我想保存从notificationListener接收到的`event.alert`。奇怪的是,当我像这样弹出事件`native.showAlert("Title",event.alert,{"Ok"})`时,它会显示`event.alert`消息。但是当我尝试将其保存到GGData中时,会像这样:

local function notificationListener( event )
    -- display alert that shows the event name and type:
    print("init notificationListener")

    local yo = GGData:new("tuohai")
    yo:set("message",event.alert)
    yo:save()
end

它并没有获取event.alert的值。为什么会发生这种情况?

点赞