YZ_Tool_GoogleWeb.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import PlatUtils from "./PlatUtils";
  2. import { utils } from "./Utils";
  3. import { LevelStatus } from "./YZ_Constant";
  4. const ST_ServerUrl: string = "http://apps.youlesp.com/aconfig?";
  5. let ST_DefaultServerConfig: string = "";
  6. const ST_NativeInsertAdClickTimes: string = "NativeInsertAdClickTimes";
  7. const ST_LastDateTime: string = "LastDateTime";
  8. const POST_ServerUrl: string = "https://report.youletd.com/gss?";
  9. export default class YZ_Tool_GoogleWeb {
  10. _serverConfig: any = null;
  11. public get ServerConfig() {
  12. return this._serverConfig;
  13. }
  14. /**
  15. *
  16. * @param data 配置数据
  17. */
  18. public init(data: string) {
  19. this._loadConfig();
  20. }
  21. _loadConfig() {
  22. utils.emitServerInitEvent();
  23. }
  24. /**
  25. * 上报自定义事件
  26. * @param level 当前关卡ID
  27. * @param levelName 关卡名称
  28. * @param status 状态
  29. */
  30. public sendEvent(eventName: string) {
  31. }
  32. /**
  33. *
  34. * @param level 当前关卡ID
  35. * @param levelName 关卡名称
  36. * @param status 状态
  37. */
  38. public postLevel(level: string, status: LevelStatus, levelName?: string) {
  39. }
  40. }