129 lines
4.4 KiB
TypeScript
129 lines
4.4 KiB
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('ChannelCfg')
|
|
export default class ChannelCfg {
|
|
private static _I: ChannelCfg = null;
|
|
public static get I(): ChannelCfg {
|
|
if (!ChannelCfg._I) {
|
|
ChannelCfg._I = new ChannelCfg();
|
|
ChannelCfg._I.init();
|
|
}
|
|
return ChannelCfg._I;
|
|
}
|
|
|
|
|
|
private ZhuZuo = '著作权人:北京爱游飞天科技有限公司 出版单位:北京中科奥科技有限公司 ISBN:978-7-498-06347-2 审批文号:国新出审[2019]1120号 来文文号:京新广文[2018]206号 软著号:2017SR724614';
|
|
private ChannelInfo = {
|
|
1: {//内网
|
|
CHAppId: 'test',
|
|
CHChnlId: 'test',
|
|
ChannelApplyId: 'test',
|
|
ZhuZuo: this.ZhuZuo,
|
|
getDomain: 'http://fishres.hgwl710.com/getGZDomainFacInner.html',
|
|
RealeseCfg: `http://123.52.43.116:40433/fish3/cfg/`,
|
|
DebugCfg: `http://123.52.43.116:40433/fish3/cfg/`,
|
|
RealeseRes: ``,
|
|
DebugRes: ``,
|
|
},
|
|
999999: {//内网
|
|
CHAppId: 'h5',
|
|
CHChnlId: 'h5',
|
|
ChannelApplyId: 'h5',
|
|
ZhuZuo: this.ZhuZuo,
|
|
getDomain: 'http://fishres.hgwl710.com/Fish/getDomainFacInner.html',
|
|
RealeseCfg: `http://fishres.hgwl710.com/Fish/DEV/TS/cfg/`,
|
|
DebugCfg: `http://fishres.hgwl710.com/Fish/DEV/TS/cfg/`,
|
|
RealeseRes: `http://tk3h5.hgwl710.com/Fish/DEV/TS/Res/`,
|
|
DebugRes: `http://tk3h5.hgwl710.com/Fish/DEV/TS/Res/`,
|
|
},
|
|
555: {//内网
|
|
CHAppId: 'zy',
|
|
CHChnlId: 'zy',
|
|
ChannelApplyId: 'zy',
|
|
ZhuZuo: this.ZhuZuo,
|
|
getDomain: 'http://fishres.hgwl710.com/NewFish3/getGZDomainFacOnline.html',
|
|
RealeseCfg: `http://fishres.hgwl710.com/NewFish3/Android/zongyou/ZS/cfg/`,
|
|
DebugCfg: `http://fishres.hgwl710.com/NewFish3/Android/zongyou/TS/cfg/`,
|
|
RealeseRes: ``,
|
|
DebugRes: ``,
|
|
},
|
|
999998: {//内网网页端,无支付模式
|
|
CHAppId: 'h5_norecharge',
|
|
CHChnlId: 'h5_norecharge',
|
|
ChannelApplyId: 'h5_norecharge',
|
|
ZhuZuo: this.ZhuZuo,
|
|
getDomain: 'http://fishres.hgwl710.com/Fish/getDomainFacInner.html',
|
|
RealeseCfg: `http://fishres.hgwl710.com/Fish/DEV/TS/cfg/`,
|
|
DebugCfg: `http://fishres.hgwl710.com/Fish/DEV/TS/cfg/`,
|
|
RealeseRes: `http://tk3h5.hgwl710.com/Fish/DEV/TS/Res/`,
|
|
DebugRes: `http://tk3h5.hgwl710.com/Fish/DEV/TS/Res/`,
|
|
},
|
|
7100201: {
|
|
CHAppId: 'zy',
|
|
CHChnlId: 'zy',
|
|
ChannelApplyId: 'zy',
|
|
GameId: 7100201,
|
|
ZhuZuo: '著作权人:北京爱游飞天科技有限公司 出版单位:北京中科奥科技有限公司 ISBN:978-7-498-06347-2 审批文号:国新出审[2019]1120号 来文文号:京新广文[2018]206号 软著号:2017SR724614',
|
|
getDomain: 'http://fishres.hgwl710.com/NewFish3/getGZDomainFacOnline.html',
|
|
RealeseCfg: `http://fishres.hgwl710.com/NewFish3/Android/zongyou/ZS/cfg/`,
|
|
DebugCfg: `http://fishres.hgwl710.com/NewFish3/Android/zongyou/TS/cfg/`,
|
|
RealeseRes: ``,
|
|
DebugRes: ``,
|
|
}
|
|
}
|
|
|
|
|
|
private C_Info = null;
|
|
init() {
|
|
this.C_Info = {};
|
|
for (const key in this.ChannelInfo) {
|
|
let c_cfg = this.ChannelInfo[key];
|
|
let cc_C = new Channel_C();
|
|
for (const key in c_cfg) {
|
|
cc_C[key] = c_cfg[key];
|
|
}
|
|
this.C_Info[key] = cc_C;
|
|
}
|
|
}
|
|
|
|
getChannelInfo(type: number): Channel_C {
|
|
return this.C_Info[type];
|
|
}
|
|
}
|
|
|
|
|
|
export class Channel_C {
|
|
/**草花应用ID */
|
|
CHAppId: '';
|
|
/**草花渠道ID */
|
|
CHChnlId: '';
|
|
/**渠道应用ID */
|
|
ChannelApplyId: '';
|
|
/**游戏ID */
|
|
GameId: '';
|
|
/**游戏秘钥 */
|
|
GameKey: '';
|
|
/**投放渠道ID */
|
|
TouFangId: '';
|
|
/**投放子渠道ID */
|
|
TouFangSubId: '';
|
|
IMEI: 'H5-WeChat';
|
|
Version: '';
|
|
UId: '';
|
|
MacAddress: '';
|
|
SystemModel: '';
|
|
Platform: 'H5';
|
|
AppVersionCode: 'windows';
|
|
wechatID: 0; //草花微信小程序ID
|
|
offerID: 0;//微信小程序 offerID
|
|
ZhuZuo: '';
|
|
getDomain: '';
|
|
RealeseCfg: '';
|
|
DebugCfg: '';
|
|
RealeseRes: '';
|
|
DebugRes: '';
|
|
privacyAgreement: '';//隐私协议
|
|
}
|
|
|