添加全局的env参数

This commit is contained in:
zhl 2019-03-08 13:01:28 +08:00
parent 221d11cd18
commit 0f8f276c25
2 changed files with 4 additions and 2 deletions

View File

@ -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: ['射击','格斗', '角色扮演','动作角色扮演',
'赛车', '动作游戏','策略战棋', '其他',

View File

@ -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';