You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 line
638 B

  1. -- 获取设备唯一ID
  2. cc.exports.F_EapGetDeviceID = function()
  3. -- return G_DeviceData.getMacAddress()
  4. if isWin32Platform() then
  5. return "F_EapGetMacAddress_" .. app.user.loginInfo.uid
  6. --return "F_EapGetMacAddress_" .. Math.random(1000, 9999)
  7. end
  8. return getDeviceID()
  9. end
  10. -- 打印
  11. cc.exports.F_EapPrint = function(...)
  12. print(...)
  13. end
  14. -- 跳转网页
  15. cc.exports.F_EapOpenUrl = function(url)
  16. -- G_DeviceData.goToUrl(url)
  17. app.plugin:callUrl(url)
  18. print("F_EapOpenUrl = ", url)
  19. end
  20. -- 初始化json库 require("cjson") or require("JSON") or require("json")
  21. cc.exports.G_EapSdkJson = require("json")