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.
54 lines
1.5 KiB
54 lines
1.5 KiB
/*
|
|
* @Descripttion:
|
|
* @version: 1.0.0
|
|
* @Author: YeeChan
|
|
* @Date: 2020-07-23 16:59:58
|
|
*/
|
|
import RYAD from "./RYAD";
|
|
import RYSTAT from "./RYSTAT";
|
|
|
|
export default class RYSDK {
|
|
public static get Instance_custom() {
|
|
if (null == RYSDK._instance_custom) {
|
|
console.error("请先调用 RYSDK.init() 对RYSDK进行初始化!!!!!!");
|
|
}
|
|
return RYSDK._instance_custom;
|
|
}
|
|
protected static _instance_custom: RYSDK = null;
|
|
|
|
public static init_custom(code: string) {
|
|
if (null != RYSDK._instance_custom) {
|
|
console.error("请不要重复初始化 RYSDK !!!!!!");
|
|
return;
|
|
}
|
|
console.log("初始化 RYSDK !!!!!!")
|
|
let ins = new RYSDK();
|
|
ins._ad_custom = new RYAD();
|
|
ins._stat_custom = new RYSTAT();
|
|
RYSDK._instance_custom = ins;
|
|
if (null != window["rysdk"]) {
|
|
window["rysdk"].ry_init();
|
|
RYSDK._instance_custom._rysdk_custom = window["rysdk"];
|
|
RYSDK.Instance_custom.STAT_custom.reportInit_custom();
|
|
RYSDK.Instance_custom.STAT_custom.reportLogin_custom();
|
|
}
|
|
}
|
|
|
|
private constructor() {
|
|
|
|
}
|
|
|
|
public get AD_custom() {
|
|
return this._ad_custom;
|
|
}
|
|
private _ad_custom: RYAD = null;
|
|
public get STAT_custom() {
|
|
return this._stat_custom;
|
|
}
|
|
private _stat_custom: RYSTAT = null;
|
|
|
|
public get rysdk_custom() {
|
|
return this._rysdk_custom
|
|
}
|
|
protected _rysdk_custom: any = null;
|
|
} |