|
-
- -- 获取设备唯一ID
- cc.exports.F_EapGetDeviceID = function()
- -- return G_DeviceData.getMacAddress()
- if isWin32Platform() then
- return "F_EapGetMacAddress_" .. app.user.loginInfo.uid
- --return "F_EapGetMacAddress_" .. Math.random(1000, 9999)
- end
- return getDeviceID()
- end
- -- 打印
- cc.exports.F_EapPrint = function(...)
- print(...)
- end
- -- 跳转网页
- cc.exports.F_EapOpenUrl = function(url)
- -- G_DeviceData.goToUrl(url)
- app.plugin:callUrl(url)
- print("F_EapOpenUrl = ", url)
- end
- -- 初始化json库 require("cjson") or require("JSON") or require("json")
- cc.exports.G_EapSdkJson = require("json")
|