suerprisePlus
2024-08-14 d4a3ca549f8755c2f87442c27217c3be39cab5cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
console.log(location);
const host = location.origin;
const isWeb = false;
var isUrl = isWeb ? "103.135.160.14" : "192.168.11.24";
// api端口
const apiHost = isWeb ? isUrl + "" : isUrl + ":12316";
// 配网端口
const peiWangHost = isWeb ? isUrl + "" : isUrl + ":8101";
// GeoServer端口
const geoHost = isWeb ? isUrl + "" : isUrl + ":9055";
// {host}替换
const iisHost = isWeb ? isUrl + ":9036" : "localhost:80";
// 知识图谱端口
const kgHost = isWeb ? isUrl + ":9036" : isUrl + ":8080";
// 数据分析端口
const pyHost = isWeb ? isUrl + ":9036" : isUrl + ":8000";
//rag端口
const ragHost = isWeb ? isUrl + ":9036" : "192.168.11.95:8080";
// 本地数据地址
const pwythHost = "http://localhost/pwyth";
//配置
const config = {
  // server服务
  apiServices: "http://" + apiHost + "/server/",
  // 知识图谱服务
  kgServices: "http://" + kgHost,
  // 配网服务
  peiWangServices: "http://" + peiWangHost + "/peiwang/",
  //数据分析接口
  pyServices: "http://" + pyHost + "/py",
  //rag服务地址
  ragServices: "http://" + ragHost+ "/api/vi",
  imageUrl: "",
  // sdk显示
  sdkImg: host + "/visual/CimSDK/",
  // 天地图
  tdToken: "94a34772eb88317fcbf8428e10448561",
  // geoServer服务
  geoServer: {
    url: "http://" + geoHost + "/geoserver/sxpw",
    wms: "/wms",
    wfs: ""
  },
  //地下数据
  terrain: {
    isShow: false,
    isUrl: pwythHost + "/terrain/"
  },
  domTilesets: {
    url: pwythHost + "/qingxie/tileset.json"
  },
  baseModel:{
    serveType: 'Tileset',
    url: pwythHost + "/modles/TY/tileset.json",
    cnName:"baseModel",
    id:"baseModel",
 },
};