From 0f8f276c25e437c67b87053ca384d4f3d2a392fb Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 8 Mar 2019 13:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=B1=80=E7=9A=84en?= =?UTF-8?q?v=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/global.js | 3 ++- src/jcfw/SDKManage.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/global.js b/src/common/global.js index 762d098..cdf5c71 100644 --- a/src/common/global.js +++ b/src/common/global.js @@ -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: ['射击','格斗', '角色扮演','动作角色扮演', '赛车', '动作游戏','策略战棋', '其他', diff --git a/src/jcfw/SDKManage.js b/src/jcfw/SDKManage.js index 20e786c..005834d 100755 --- a/src/jcfw/SDKManage.js +++ b/src/jcfw/SDKManage.js @@ -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';