var config = (function(global){ global.apigateway = window.location.protocol + '//' + window.location.host; // 设置通过API网关访问 global.iotCenterUrl = global.apigateway + '/IoTCenter'; // IoT服务API global.hubUrl = global.apigateway + '/IoTCenter/hub?group=page'; // 设备WebSocket访问地址 global.liverUrl = global.apigateway; // 流媒体服务器地址 return global; })(window.config||{});