添加全局的env参数
This commit is contained in:
parent
221d11cd18
commit
0f8f276c25
@ -1,6 +1,7 @@
|
||||
const env = 'test'; //product
|
||||
export default {
|
||||
// apiBase: 'http://192.168.100.232',
|
||||
apiBase: 'https://ghost-test.kingsome.cn',
|
||||
apiBase: env === 'test'? 'https://ghost-test.kingsome.cn' : 'https://ghost.kingsome.cn',
|
||||
version: '1.0.1',
|
||||
gameTypes: ['射击','格斗', '角色扮演','动作角色扮演',
|
||||
'赛车', '动作游戏','策略战棋', '其他',
|
||||
|
@ -1,9 +1,10 @@
|
||||
var jcfw = require('./jcfw');
|
||||
var jcgamelog = jcfw.gamelog;
|
||||
var jcshare = jcfw.share;
|
||||
var g = require('../common/global').default;
|
||||
|
||||
var SDKManage = function() {
|
||||
this.isoffical = false;
|
||||
this.isoffical = g.env === 'product';
|
||||
this.gameId = 8003;
|
||||
this.hasLogin = false;
|
||||
this.vision = '1.0.0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user