__WebGlobal__ = { }; __WebApplication__={}; __WebGlobal__.units = [{"uuid":"18b9a7c8-30eb-45d2-abf2-a8c5e4a67018","shortName":"devel","name":"developer","alias":"devel","status":"SYSTEM","sort":1,"parent":"","fullPath":"/developer","createTime":"2017-05-23T07:19:54.421Z","updateTime":"2017-09-19T06:47:34.427Z","description":"","scope":"not scope name","home":"","profiles":{}},{"uuid":"c2cfb4f0-3fda-4e64-9db6-cc0bb1b4544f","shortName":"海康集团","name":"海康集团","alias":"highcom","status":"activation","sort":1,"parent":"","fullPath":"/海康集团","createTime":"2017-05-23T07:19:54.421Z","updateTime":"2017-09-19T06:47:34.365Z","description":"","scope":"not scope name","home":"","profiles":{}}]; __WebGlobal__.setOptions = function(scope, keys, value) { var keys = keys.split('.'); try { var last_o = null; var last_key = null; var o = System[scope]; for (var i = 0; i < keys.length; i++) { var key = keys[i]; //console.log(key,o) if (i > 0 && o == null) { return; } last_key = key; last_o = o; o = o[key]; } last_o[last_key] = value; return last_o[last_key]; } catch (e) { console.error(e); return {}; } finally {} } __WebGlobal__.getOptions = function(scope, keys, default_value) { var keys = keys.split('.'); try { var o = System[scope]; for (var i = 0; i < keys.length; i++) { var key = keys[i]; //console.log(key,o) if (i > 0 && o == null) { return default_value; } o = o[key]; } return o; } catch (e) { console.error(e); return {}; } finally {} }; __WebGlobal__.server ={ 'application':{ 'name':'highcom', }, 'contextPath' : '/v6/' } __WebGlobal__.service = (function() { //var service_name = '/v6/'; //var webapi_system_root = '/api/v3.0.2'; var d_port = ""; if (window.location.port != "") { d_port = ':' + window.location.port } var service_root = window.location.protocol + '//' + window.location.hostname + d_port + '/' ; var root_location = window.location.protocol + '//' + window.location.hostname + d_port var apis = { default: "express-zone-api", "express-zone-api": { host: '', location: root_location + '/api/v2.0.0' } }; apis={}; apis.get = function(key) { if("v2.0.0"==key){ try { throw new Error("请使用get('express-zone-api') 替代 get('v2.0.0')") } catch (e) { console.error(e) } } if (key == null) { //return apis[apis.default] return ""; } var value = apis[key]; if (value == null) { // value = apis[apis.default] return ""; } value.toString = function() { return value.location; }; return value; } var res = { api: apis }; res.add = function(key, value, isDefault) { value.toString = function() { return value.location; }; apis[key] = value; if (isDefault == true) { apis.default = key; } } res.toString = function() { return res.location; }; return res; })(); __WebGlobal__.runtime = {}; __WebGlobal__.runtime.view = { theme:{ name:'' } }; __WebGlobal__.runtime.repository = { host: '', path: '/v6/repository/' } __WebGlobal__.runtime._parameter = {}; __WebGlobal__.runtime.parameter = function(key, default_value) { return __WebGlobal__.runtime._parameter[key]; } for (var k in __WebGlobal__.runtime._parameter) { __WebGlobal__.runtime.parameter[k] = __WebGlobal__.runtime._parameter[k]; } __WebGlobal__.runtime.manager = { 'sources': '' }; __WebGlobal__.runtime.device = {}; __WebGlobal__.runtime.device.actived = { mobile: 'UNKNOWN' == 'MOBILE' ? true : false, name: 'UNKNOWN' == 'MOBILE' ? '' : '' } //= browser.device; //__WebGlobal__.runtime.device.supports = browser.supports; __WebGlobal__.runtime.device.operatingSystem = 'unknown'; __WebGlobal__.runtime.device.browser = 'BOT'; __WebGlobal__.runtime.device.browserVersion = ''; __WebGlobal__.runtime.device.id = '16,843,020'; __WebGlobal__.runtime.device.userAgentString = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'; try { if (__WebGlobal__.runtime.parameter.localstorage == "clear") { localStorage.clear(); } if (__WebGlobal__.runtime.parameter.debug == "true") { localStorage.clear(); } } catch (e) { }