Commit cd630485 authored by wildfirecode's avatar wildfirecode

1

parent d2de2567
......@@ -4,34 +4,34 @@ import { IExposureData } from '../data/common/IExposureData';
export class Buried {
private static appId: number;
private static consumerId: number;
// private static consumerId: number;
private static oaId: number;
/**
* 初始化
*/
public static init(): void {
if (DataManager.ins.gameCfgData) {
this.appId = DataManager.ins.gameCfgData.appInfo.appId;
this.consumerId = DataManager.ins.getInfoData.consumerId;
this.oaId = DataManager.ins.gameCfgData.gameInfo.oaId;
} else if (DataManager.ins.customCfgData) {
this.appId = DataManager.ins.customCfgData.appId;
this.consumerId = DataManager.ins.customCfgData.consumerId;
this.oaId = DataManager.ins.customCfgData.oaId;
} else if (DataManager.ins.petIndexData && DataManager.ins.petIndexData.appId && DataManager.ins.petIndexData.activityId) {
this.appId = DataManager.ins.petIndexData.appId;
this.consumerId = DataManager.ins.petIndexData.consumerId;
this.oaId = DataManager.ins.petIndexData.activityId;
} else if (DataManager.ins.petsIndexData && DataManager.ins.petsIndexData.appId && DataManager.ins.petsIndexData.activityId) {
this.appId = DataManager.ins.petsIndexData.appId;
this.consumerId = DataManager.ins.petsIndexData.consumerId;
this.oaId = DataManager.ins.petsIndexData.activityId;
} else {
// if (DataManager.ins.gameCfgData) {
// this.appId = DataManager.ins.gameCfgData.appInfo.appId;
// this.consumerId = DataManager.ins.getInfoData.consumerId;
// this.oaId = DataManager.ins.gameCfgData.gameInfo.oaId;
// } else if (DataManager.ins.customCfgData) {
// this.appId = DataManager.ins.customCfgData.appId;
// this.consumerId = DataManager.ins.customCfgData.consumerId;
// this.oaId = DataManager.ins.customCfgData.oaId;
// } else if (DataManager.ins.petIndexData && DataManager.ins.petIndexData.appId && DataManager.ins.petIndexData.activityId) {
// this.appId = DataManager.ins.petIndexData.appId;
// this.consumerId = DataManager.ins.petIndexData.consumerId;
// this.oaId = DataManager.ins.petIndexData.activityId;
// } else if (DataManager.ins.petsIndexData && DataManager.ins.petsIndexData.appId && DataManager.ins.petsIndexData.activityId) {
// this.appId = DataManager.ins.petsIndexData.appId;
// this.consumerId = DataManager.ins.petsIndexData.consumerId;
// this.oaId = DataManager.ins.petsIndexData.activityId;
// } else {
this.appId = window["appId"];
this.consumerId = window["consumerId"];
// this.consumerId = window["consumerId"];
this.oaId = window["projectId"];
}
// }
}
/**
......@@ -47,7 +47,7 @@ export class Buried {
dpm: dpm,
dcm: dcm,
dom: dom,
consumerId: Buried.consumerId,
// consumerId: Buried.consumerId,
appId: Buried.appId,
domain: embedDomain
};
......@@ -56,7 +56,7 @@ export class Buried {
const exposure: IExposureData = {
dpm: dpm,
dcm: dcm,
consumerId: Buried.consumerId,
// consumerId: Buried.consumerId,
appId: Buried.appId,
domain: embedDomain
};
......
......@@ -10,6 +10,7 @@ import { ModuleTypes } from "../types/sceneTypes";
import PanelCtrl from "../ctrls/panelCtrl";
import iswx from "../iswx";
import { getlogItem } from "./ConfirmPanel";
import { GCache } from "../../libs/tc/util/GCache";
export default class TransScene extends Scene {
_bg: SVGA.EgretMovieClip;
......@@ -21,15 +22,17 @@ export default class TransScene extends Scene {
constructor(data) {
super();
this.initUI(data);
GCache.writeCache("isGuide2", true);
GCache.writeCache("isGuide1", true);
}
async initUI(data) {
if (iswx()) {
NetManager.ins.showLog(getlogItem(9));
}else {
} else {
NetManager.ins.showLog(getlogItem(8));
}
this.once(egret.Event.ADDED_TO_STAGE, () => {
this.height = this.stage.stageHeight;
}, this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment