diff --git a/hd-glasses-app/.env.company b/hd-glasses-app/.env.company new file mode 100644 index 0000000..c6d8925 --- /dev/null +++ b/hd-glasses-app/.env.company @@ -0,0 +1,7 @@ +VUE_APP_MAP_URL='https://192.168.2.181/geoserver' +VUE_APP_MAP_AUTHKEY='30efbafe-d218-4d77-8200-0207246924be' +VUE_APP_API="https://192.168.2.181/znzq" +VUE_APP_STATIC_FILE_Prefix='//192.168.2.181/static_file' +VUE_APP_SRS_URL='webrtc://192.168.2.181/' +VUE_APP_IM_API_URL='https://192.168.2.181/im_api/v1' +VUE_APP_MAP_ROUTE='https://192.168.2.181/route' diff --git a/hd-glasses-app/.env.dev b/hd-glasses-app/.env.dev index 9d828d2..21823b0 100644 --- a/hd-glasses-app/.env.dev +++ b/hd-glasses-app/.env.dev @@ -1,7 +1,8 @@ VUE_APP_MAP_URL='http://82.157.23.170:8600/geoserver' VUE_APP_MAP_AUTHKEY='9b488ac6-5309-4ef4-ab99-2180d2da161d' VUE_APP_API="http://work.ii999.live:19002/znzq" -VUE_APP_STATIC_FILE_Prefix='//119.45.242.222/static_file' -VUE_APP_SRS_URL='webrtc://119.45.242.222/' +VUE_APP_STATIC_FILE_Prefix='//192.168.2.181/static_file' +VUE_APP_SRS_URL='webrtc://192.168.2.181/' -VUE_APP_IM_API_URL='https://dev.shudong.xyz/im_api/v1' +VUE_APP_IM_API_URL='https://192.168.2.181/im_api/v1' +VUE_APP_MAP_ROUTE='https://172.16.3.18/geoserver' diff --git a/hd-glasses-app/.env.hd b/hd-glasses-app/.env.hd index 39913dd..3e3a05e 100644 --- a/hd-glasses-app/.env.hd +++ b/hd-glasses-app/.env.hd @@ -1,6 +1,8 @@ VUE_APP_MAP_URL='https://172.16.3.18/geoserver' + VUE_APP_MAP_AUTHKEY='30efbafe-d218-4d77-8200-0207246924be' VUE_APP_API="https://172.16.3.18/znzq" VUE_APP_STATIC_FILE_Prefix='//172.16.3.18/static_file' VUE_APP_SRS_URL='webrtc://172.16.3.18/' VUE_APP_IM_API_URL='https://172.16.3.18/im_api/v1' +VUE_APP_MAP_ROUTE='https://172.16.3.18/route' diff --git a/hd-glasses-app/package.json b/hd-glasses-app/package.json index dccc3a0..e636a13 100644 --- a/hd-glasses-app/package.json +++ b/hd-glasses-app/package.json @@ -8,6 +8,7 @@ "serve": "vue-cli-service serve --mode dev", "prod-serve": "vue-cli-service serve --mode hd", "build:hd": "vue-cli-service build --mode hd && node deployHD.js", + "build:company": "vue-cli-service build --mode company", "build:online": "vue-cli-service build --mode dev", "lint": "vue-cli-service lint" }, diff --git a/hd-glasses-app/public/index.html b/hd-glasses-app/public/index.html index 4193966..3788ec9 100644 --- a/hd-glasses-app/public/index.html +++ b/hd-glasses-app/public/index.html @@ -1,9 +1,9 @@ - + diff --git a/hd-glasses-app/public/srs/srs.sdk.js b/hd-glasses-app/public/srs/srs.sdk.js index 7edebe9..4f18a3d 100644 --- a/hd-glasses-app/public/srs/srs.sdk.js +++ b/hd-glasses-app/public/srs/srs.sdk.js @@ -36,7 +36,7 @@ function SrsRtcPublisherAsync() { self.turn = { iceServers: [{ - urls: 'turns:172.16.3.18:3478', 'credential': 'huashiai', + urls: 'turn:120.79.18.123:3478', 'credential': 'mars23600800', 'username': 'huashiai' }] }; diff --git a/hd-glasses-app/src/main.js b/hd-glasses-app/src/main.js index ffa06f0..036240d 100644 --- a/hd-glasses-app/src/main.js +++ b/hd-glasses-app/src/main.js @@ -1,6 +1,6 @@ import Vue from 'vue' import App from './App.vue' -import utils from './utils/publicFun'; +// import utils from './utils/publicFun'; import router from './router' import axios from 'axios' @@ -15,7 +15,7 @@ import 'amfe-flexible'; Vue.config.productionTip = false -Vue.prototype.$utils = utils; +// Vue.prototype.$utils = utils; new Vue({ render: h => h(App), diff --git a/hd-glasses-app/src/pages/call_room.vue b/hd-glasses-app/src/pages/call_room.vue index 42dcd7a..7f2b4d8 100644 --- a/hd-glasses-app/src/pages/call_room.vue +++ b/hd-glasses-app/src/pages/call_room.vue @@ -289,12 +289,12 @@ export default { this.beginPublish() }, switchCamera() { - if(this.client="app"){ + /* if(this.client="app"){ location.href = "uniwebview://action?function=callRoomFuns¶ms1=switchCamara" console.log("发送切换摄像头通知") return false; } - +*/ let self = this; self.cameraIndex = self.cameraIndex + 1 == self.cameraDevices.length ? 0 : self.cameraIndex + 1 @@ -342,7 +342,7 @@ export default { navigator.mediaDevices.enumerateDevices().then(this.gotDevices).catch(this.handleError); - if(this.client=="app"){ + /* if(this.client=="app"){ if(this.constraints.video==false){ console.log("发送关闭摄像头通知") location.href = "uniwebview://action?function=callRoomFuns¶ms1=closeCamara" @@ -360,7 +360,7 @@ export default { return false; } - +*/ if (_this.publishSdk) { _this.publishSdk.close(); } diff --git a/hd-glasses-app/src/pages/hd_map.vue b/hd-glasses-app/src/pages/hd_map.vue index ca09c4d..08bf409 100644 --- a/hd-glasses-app/src/pages/hd_map.vue +++ b/hd-glasses-app/src/pages/hd_map.vue @@ -145,6 +145,7 @@ export default { isCanDraw: true, from: "", routeType: "car", + longpress: false }; }, mounted() { @@ -180,7 +181,6 @@ export default { case "pcPlanningPath": this.pcDrawType = "LineString"; window.addEventListener('message', (event) => { - this.isCanDraw = false console.log(event.data) if (this.parentPostMessageData.length == 0) { @@ -205,7 +205,7 @@ export default { if (event.data instanceof Array) { this.map.removeLayer(this.drawPlanningPathLayer); this.parentPostMessageData = event.data; - this.drawPcPostMessageDataLayer() + this.drawPcPostMessageDataLayer(); } else { this.isCanDraw = true; } @@ -360,22 +360,68 @@ export default { zoom: 16, }), }); - this.map.on('singleclick', e => { - this.map.forEachFeatureAtPixel( - e.pixel, - (feature) => { - console.log("Feature被点击了") - console.log(feature) - if (feature.values_.type == 'alarm') { - this.alarmDetailsData = feature.values_.data; - this.alarmDetailsOverlay = true; + + if (this.pageType == "mini") { + + var _this = this; + this.map.on("click", function (e) { + (_this.longpress) ? console.log("Long Press") : console.log("Short Press") + + if (_this.longpress) { + + console.log(e) + console.log(e.coordinate) + + const startPoint = ol.proj.transform(e.coordinate, 'EPSG:3857', 'EPSG:4326'); + location.href = "uniwebview://action?function=homeAddAlarmPoint¶ms1=" + JSON.stringify(startPoint); + + } else { + _this.map.forEachFeatureAtPixel( + e.pixel, + (feature) => { + console.log("Feature被点击了") + console.log(feature) + if (feature.values_.type == 'alarm') { + _this.alarmDetailsData = feature.values_.data; + _this.alarmDetailsOverlay = true; + } + }, + { + hitTolerance: 30 + } + ); + } + + }); + var startTime, endTime; + this.map.on('pointerdown', function () { + + startTime = new Date().getTime(); + }); + this.map.on('pointerup', function () { + endTime = new Date().getTime(); + console.log(endTime - startTime); + _this.longpress = (endTime - startTime < 500) ? false : true; + }); + + } else { + this.map.on('singleclick', e => { + this.map.forEachFeatureAtPixel( + e.pixel, + (feature) => { + console.log("Feature被点击了") + console.log(feature) + if (feature.values_.type == 'alarm') { + this.alarmDetailsData = feature.values_.data; + this.alarmDetailsOverlay = true; + } + }, + { + hitTolerance: 30 } - }, - { - hitTolerance: 30 - } - ); - }); + ); + }); + } }, /** @@ -392,7 +438,7 @@ export default { planningPathCar() { const startPoint = ol.proj.transform(this.navigationStartPoint, 'EPSG:4326', 'EPSG:3857'); const endPoint = ol.proj.transform(this.navigationEndPoint, 'EPSG:4326', 'EPSG:3857'); - let _url = "https://172.16.3.18/route/v0/driving/" + let _url = process.env.VUE_APP_MAP_ROUTE +"/v0/driving/" _url = _url + this.navigationStartPoint[0] + "," _url = _url + this.navigationStartPoint[1] + ";" _url = _url + this.navigationEndPoint[0] + "," @@ -479,7 +525,8 @@ export default { planningPathFoot() { const startPoint = ol.proj.transform(this.navigationStartPoint, 'EPSG:4326', 'EPSG:3857'); const endPoint = ol.proj.transform(this.navigationEndPoint, 'EPSG:4326', 'EPSG:3857'); - let _url = "https://172.16.3.18/route/v1/driving/" + // let _url = "https://192.168.2.181/route/v1/driving/" + let _url = process.env.VUE_APP_MAP_ROUTE +"/v1/driving/" _url = _url + this.navigationStartPoint[0] + "," _url = _url + this.navigationStartPoint[1] + ";" _url = _url + this.navigationEndPoint[0] + "," @@ -928,10 +975,12 @@ export default { // 图层添加到地图上 this.map.addLayer(this.alarmLayer); var flag = true - this.alarmAnimation = setInterval(() => { - flag = !flag - this.alarmLayer.setVisible(flag) - }, 1500); + /* + this.alarmAnimation = setInterval(() => { + flag = !flag + this.alarmLayer.setVisible(flag) + }, 1500); + */ } @@ -944,6 +993,7 @@ export default { //临时智慧所,小红旗 if (record.alarmCategory == "1706273001850601474") { // 设置要素的图标 + feature.setStyle( new Style({ // 设置图片效果 @@ -1092,13 +1142,13 @@ export default { if (index == 2) { location.href = "uniwebview://action?function=alarmPlanningAction¶ms1=" + this.alarmDetailsData.id + "¶ms2=" + this.alarmDetailsData.location; } - }catch (e) { + } catch (e) { console.log(e) } - setTimeout(()=>{ - this.alarmDetailsOverlay=false - },1000) + setTimeout(() => { + this.alarmDetailsOverlay = false + }, 1000) }, diff --git a/hd-glasses-app/src/pages/hd_map_pc_draw_area.vue b/hd-glasses-app/src/pages/hd_map_pc_draw_area.vue index aa014fc..390247a 100644 --- a/hd-glasses-app/src/pages/hd_map_pc_draw_area.vue +++ b/hd-glasses-app/src/pages/hd_map_pc_draw_area.vue @@ -541,7 +541,6 @@ export default { vectorSource.addFeature(polygonFeature); } - // 矢量地图 this.drawPlanningPathLayer = new VectorLayer({ source: vectorSource, diff --git a/hs-im-server/.gitignore b/hs-im-server/.gitignore index 758fada..c414666 100644 --- a/hs-im-server/.gitignore +++ b/hs-im-server/.gitignore @@ -3,5 +3,4 @@ /im-service/target /im-common/target /build/** -/dev /hd diff --git a/hs-im-server/dev/app-service-1.0-SNAPSHOT.jar b/hs-im-server/dev/app-service-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..9e31311 Binary files /dev/null and b/hs-im-server/dev/app-service-1.0-SNAPSHOT.jar differ diff --git a/hs-im-server/dev/docker-compose.yml b/hs-im-server/dev/docker-compose.yml new file mode 100644 index 0000000..cba1c94 --- /dev/null +++ b/hs-im-server/dev/docker-compose.yml @@ -0,0 +1,77 @@ +version: '3' +services: + app-web: + image: nginx:1.25 + restart: always + privileged: true + container_name: app-web + # ports: + # - 80:80 + # - 443:443 + network_mode: host + volumes: + - ./:/usr/share/nginx/html/ + - ./nginx.conf:/etc/nginx/nginx.conf + im-tcp: + image: 172.16.2.1:8083/java:8_server-jre_unlimited + restart: always + privileged: true + environment: + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 + TZ: Asia/Shanghai + IM_HOST: 172.16.3.18 + container_name: im-tcp + volumes: + - ./:/hd-znzq/config + - ./:/hd-znzq/system + network_mode: host +# ports: +# - 29001:29001 +# - 29000:29000 + command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-tcp-1.0.0-SNAPSHOT.jar /hd-znzq/config/hd_1.yml + im-message-store: + image: 172.16.2.1:8083/java:8_server-jre_unlimited + restart: always + privileged: true + environment: + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 + TZ: Asia/Shanghai + container_name: im-message-store + volumes: + - ./:/hd-znzq/system +# ports: +# - 8990:8990 + network_mode: host + command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-message-store-1.0.0-SNAPSHOT.jar + im-service: + image: 172.16.2.1:8083/java:8_server-jre_unlimited + restart: always + privileged: true + environment: + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 + TZ: Asia/Shanghai + SRS_HOST: 172.16.3.18 + container_name: im-service + volumes: + - ./:/hd-znzq/system + ports: + - 28000:28000 +# network_mode: host + command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/im-service-1.0.0-SNAPSHOT.jar + app-service: + image: 172.16.2.1:8083/java:8_server-jre_unlimited + restart: always + privileged: true + ports: + - 8989:8989 + environment: + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 + TZ: Asia/Shanghai + container_name: app-service + volumes: + - ./:/hd-znzq/system + command: java -Dfile.encoding=UTF-8 -jar /hd-znzq/system/app-service-1.0-SNAPSHOT.jar diff --git a/hs-im-server/dev/hd_1.yml b/hs-im-server/dev/hd_1.yml new file mode 100644 index 0000000..60f3e2e --- /dev/null +++ b/hs-im-server/dev/hd_1.yml @@ -0,0 +1,34 @@ +lim: + tcpPort: 29000 + webSocketPort: 29001 + bossThreadSize: 1 + workThreadSize: 8 + heartBeatTime: 20000 #心跳超时时间 单位毫秒 + brokerId: 1000 + loginModel: 3 + logicUrl: http://172.16.3.18:28000/v1 + # * 多端同步模式:1 只允许一端在线,手机/电脑/web 踢掉除了本client+imel的设备 + # * 2 允许手机/电脑的一台设备 + web在线 踢掉除了本client+imel的非web端设备 + # * 3 允许手机和电脑单设备 + web 同时在线 踢掉非本client+imel的同端设备 + # * 4 允许所有端多设备登录 不踢任何设备 + + redis: + mode: single # 单机模式:single 哨兵模式:sentinel 集群模式:cluster + database: 8 + password: Mars@23600800 + timeout: 3000 # 超时时间 + poolMinIdle: 8 #最小空闲数 + poolConnTimeout: 3000 # 连接超时时间(毫秒) + poolSize: 10 # 连接池大小 + single: #redis单机配置 + address: 172.16.2.3:6379 + rabbitmq: + host: 172.16.2.1 + port: 5672 + virtualHost: / + userName: guest + password: guest + + zkConfig: + zkAddr: 172.16.2.1:2181 + zkConnectTimeOut: 5000 diff --git a/hs-im-server/dev/im-message-store-1.0.0-SNAPSHOT.jar b/hs-im-server/dev/im-message-store-1.0.0-SNAPSHOT.jar new file mode 100644 index 0000000..50b1f45 Binary files /dev/null and b/hs-im-server/dev/im-message-store-1.0.0-SNAPSHOT.jar differ diff --git a/hs-im-server/dev/im-service-1.0.0-SNAPSHOT.jar b/hs-im-server/dev/im-service-1.0.0-SNAPSHOT.jar new file mode 100644 index 0000000..c21291e Binary files /dev/null and b/hs-im-server/dev/im-service-1.0.0-SNAPSHOT.jar differ diff --git a/hs-im-server/dev/im-tcp-1.0.0-SNAPSHOT.jar b/hs-im-server/dev/im-tcp-1.0.0-SNAPSHOT.jar new file mode 100644 index 0000000..1fe3a26 Binary files /dev/null and b/hs-im-server/dev/im-tcp-1.0.0-SNAPSHOT.jar differ diff --git a/hs-im-server/im-message-store/src/main/resources/application-local.yml b/hs-im-server/im-message-store/src/main/resources/application-local.yml index 4275234..a1ebd8f 100644 --- a/hs-im-server/im-message-store/src/main/resources/application-local.yml +++ b/hs-im-server/im-message-store/src/main/resources/application-local.yml @@ -4,11 +4,11 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver password: beAs0LHX2GyTxMw4 - url: jdbc:mysql://43.139.191.204:3306:3306/im-core?serverTimezone=UTC&useSSL=false&characterEncoding=UTF8 + url: jdbc:mysql://43.139.208.48:3306/im-core?serverTimezone=UTC&useSSL=false&characterEncoding=UTF8 username: root redis: - host: 43.139.191.204 + host: 43.139.208.48 port: 6379 database: 8 jedis: @@ -19,9 +19,9 @@ spring: min-idle: 10 password: dSMIXBQrCBXiHHjk123 rabbitmq: - host: 119.45.242.222 + host: 43.139.208.48 port: 5672 - addresses: 119.45.242.222 + addresses: 43.139.208.48 username: guest password: guest # virtual-host: diff --git a/hs-im-server/im-message-store/src/main/resources/application.yml b/hs-im-server/im-message-store/src/main/resources/application.yml index 9f96606..d74c444 100644 --- a/hs-im-server/im-message-store/src/main/resources/application.yml +++ b/hs-im-server/im-message-store/src/main/resources/application.yml @@ -1,3 +1,3 @@ spring: profiles: - active: prod + active: local diff --git a/hs-im-server/im-service/src/main/java/com/lld/im/service/taskScheduler/CallHistoryTask.java b/hs-im-server/im-service/src/main/java/com/lld/im/service/taskScheduler/CallHistoryTask.java index ea147c2..fc75b50 100644 --- a/hs-im-server/im-service/src/main/java/com/lld/im/service/taskScheduler/CallHistoryTask.java +++ b/hs-im-server/im-service/src/main/java/com/lld/im/service/taskScheduler/CallHistoryTask.java @@ -53,7 +53,7 @@ public class CallHistoryTask { @Transactional(rollbackFor = Exception.class) public void closeAll(ImCallHistoryEntity callHistoryEntity,List roomList){ callHistoryService.closeCallRoomWithError(callHistoryEntity); - } + } } diff --git a/hs-im-server/im-service/src/main/resources/application-local.yml b/hs-im-server/im-service/src/main/resources/application-local.yml index 89db822..b89ced0 100644 --- a/hs-im-server/im-service/src/main/resources/application-local.yml +++ b/hs-im-server/im-service/src/main/resources/application-local.yml @@ -8,11 +8,11 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver password: beAs0LHX2GyTxMw4 - url: jdbc:mysql://43.139.191.204:3306/im-core?serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=UTF8 + url: jdbc:mysql://43.139.208.48:3306/im-core?serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=UTF8 username: root redis: - host: 43.139.191.204 + host: 43.139.208.48 port: 6379 database: 8 jedis: @@ -23,9 +23,9 @@ spring: min-idle: 10 password: dSMIXBQrCBXiHHjk123 rabbitmq: - host: 119.45.242.222 + host: 43.139.208.48 port: 5672 - addresses: 119.45.242.222 + addresses: 192.168.2.181 username: guest password: guest # virtual-host: @@ -59,7 +59,7 @@ server: appConfig: appId: 10000 privateKey: 123456 - zkAddr: 119.45.242.222:2181 # zk连接地址 + zkAddr: 43.139.208.48:2181 # zk连接地址 zkConnectTimeOut: 50000 #zk超时时间 imRouteWay: 3 # 路由策略1轮训 2随机 3hash consistentHashWay: 1 # 如果选用一致性hash的话具体hash算法 1 TreeMap 2 自定义Map @@ -75,7 +75,7 @@ appConfig: groupMaxMemberCount: 500 sendMessageCheckFriend: false # 发送消息是否校验关系链 sendMessageCheckBlack: false # 发送消息是否校验黑名单 - callbackUrl: http://127.0.0.1:8000/callback + callbackUrl: http://43.139.208.48:8000/callback modifyUserAfterCallback: false # 用户资料变更之后回调开关 addFriendAfterCallback: false # 添加好友之后回调开关 addFriendBeforeCallback: false # 添加好友之前回调开关 @@ -130,4 +130,4 @@ minio: bucketName: hd-im custom: - host: 119.45.242.222 + host: 43.139.208.48 diff --git a/hs-im-server/im-service/src/main/resources/application.yml b/hs-im-server/im-service/src/main/resources/application.yml index b179ab4..097c2ce 100644 --- a/hs-im-server/im-service/src/main/resources/application.yml +++ b/hs-im-server/im-service/src/main/resources/application.yml @@ -3,4 +3,4 @@ spring: time-zone: GMT+8 profiles: - active: prod + active: local diff --git a/hs-im-server/im-tcp/src/main/resources/hd_1.yml b/hs-im-server/im-tcp/src/main/resources/hd_1.yml index 265ff84..a36e52a 100644 --- a/hs-im-server/im-tcp/src/main/resources/hd_1.yml +++ b/hs-im-server/im-tcp/src/main/resources/hd_1.yml @@ -6,7 +6,7 @@ lim: heartBeatTime: 20000 #心跳超时时间 单位毫秒 brokerId: 1000 loginModel: 3 - logicUrl: http://172.16.2.3:28000/v1 + logicUrl: http://192.168.2.181:28000/v1 # * 多端同步模式:1 只允许一端在线,手机/电脑/web 踢掉除了本client+imel的设备 # * 2 允许手机/电脑的一台设备 + web在线 踢掉除了本client+imel的非web端设备 # * 3 允许手机和电脑单设备 + web 同时在线 踢掉非本client+imel的同端设备 @@ -15,20 +15,20 @@ lim: redis: mode: single # 单机模式:single 哨兵模式:sentinel 集群模式:cluster database: 8 - password: Mars@23600800 + password: dSMIXBQrCBXiHHjk123 timeout: 3000 # 超时时间 poolMinIdle: 8 #最小空闲数 poolConnTimeout: 3000 # 连接超时时间(毫秒) poolSize: 10 # 连接池大小 single: #redis单机配置 - address: 172.16.2.3:6379 + address: 43.139.208.48 rabbitmq: - host: 172.16.2.1 + host: 192.168.2.181 port: 5672 virtualHost: / userName: guest password: guest zkConfig: - zkAddr: 172.16.2.1:2181 + zkAddr: 192.168.2.181:2181 zkConnectTimeOut: 5000 diff --git a/im-uniapp/common/config.js b/im-uniapp/common/config.js index ceab0f2..b0cefd5 100644 --- a/im-uniapp/common/config.js +++ b/im-uniapp/common/config.js @@ -1,11 +1,11 @@ export default class config{ - static prod="online_not" + static prod="online" static getZnzqApiUrl(){ if(process.env.NODE_ENV === 'development' ){ return 'http://work.ii999.live:19002/znzq' }else{ if(this.prod=="online"){ - return 'http://work.ii999.live:19002/znzq' + return '/znzq' }else{ return '/znzq' } @@ -28,7 +28,7 @@ export default class config{ return `http://localhost:8080/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}` }else{ if(this.prod=="online"){ - return `https://119.45.242.222/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}` + return `https://43.139.208.48/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}` }else{ return `https://172.16.3.18/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}` } @@ -39,7 +39,7 @@ export default class config{ return 'webrtc://119.45.242.222/' }else{ if(this.prod=="online"){ - return 'webrtc://119.45.242.222/' + return 'webrtc://43.139.208.48/' }else{ return 'webrtc://172.16.3.18/' } diff --git a/im-uniapp/main.js b/im-uniapp/main.js index dae34f4..a89ae61 100644 --- a/im-uniapp/main.js +++ b/im-uniapp/main.js @@ -16,7 +16,6 @@ import App from './App' - Vue.config.productionTip = false Vue.prototype.$socketTask = socketTask; diff --git a/im-uniapp/store/index.js b/im-uniapp/store/index.js index 53af9e6..4d0b03b 100644 --- a/im-uniapp/store/index.js +++ b/im-uniapp/store/index.js @@ -556,7 +556,7 @@ const store = new Vuex.Store({ //获取通讯录,存储通讯录数据到本地 customHttp.customHttp.get('/api/im/app/addressList', { params: { - pageSize:1000 + }, /* 会加在url上 */ header: {}, diff --git a/im-uniapp/wx/chatWindow/index.vue b/im-uniapp/wx/chatWindow/index.vue index 7dbcf81..8469448 100644 --- a/im-uniapp/wx/chatWindow/index.vue +++ b/im-uniapp/wx/chatWindow/index.vue @@ -280,8 +280,8 @@ // updateChartHistoryFromServer }, onShow() { - const hd_gps_location = localStorage.getItem("hd_gps_location") - if (hd_gps_location != null) { + const client = localStorage.getItem("client") + if (client == "app") { this.isMobile = true } // TODO PC开发 diff --git a/im-uniapp/wx/tabbar1/index.vue b/im-uniapp/wx/tabbar1/index.vue index 7abb5a6..92ba358 100644 --- a/im-uniapp/wx/tabbar1/index.vue +++ b/im-uniapp/wx/tabbar1/index.vue @@ -65,6 +65,12 @@ // // 监听接收聊天信息 uni.$on('onP2PMessage', this.onMessage) + // + if (options.client) { + uni.setStorageSync("client", options.client) + } + + if (options.imUserSign) { uni.showLoading({ title: "数据加载中...",