Commit ff71dd81 authored by liujiangnan's avatar liujiangnan

feat: 判断是不是开发环境

parent a5d35e43
...@@ -167,7 +167,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -167,7 +167,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
// @ts-ignores // @ts-ignores
window.air = window.air || {}; window.air = window.air || {};
// @ts-ignores // @ts-ignores
window.air.getEngineInfoCallback = function({isDev} ) { window.air.getEngineInfoCallback = function(res) {
let isDev;
if(typeof(res) == 'string') {
isDev = JSON.parse(res).isDev;
} else {
isDev = res;
}
console.log('isDev ' +(+isDev)); console.log('isDev ' +(+isDev));
if (+isDev) { if (+isDev) {
that.BASE_URL = 'https://staging-teach.ireadabc.com'; that.BASE_URL = 'https://staging-teach.ireadabc.com';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment