From c537e1778032a6ea13338fca512143f147f3af73 Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Sat, 30 Aug 2025 14:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E7=8A=B6=E6=80=81=E5=8F=82=E6=95=B0=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E4=B8=80=E8=B5=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 6 +++--- pages/6170/callPolice/index.vue | 2 +- pages/6170/deviceControl/index.vue | 12 ++++++------ pages/common/login/index.vue | 2 +- pages/common/send/index.vue | 2 +- utils/mqtt.js | 3 +-- utils/request.js | 2 +- 7 files changed, 14 insertions(+), 15 deletions(-) diff --git a/config/index.js b/config/index.js index dcd1dcc..e977462 100644 --- a/config/index.js +++ b/config/index.js @@ -2,11 +2,11 @@ const config = { // 开发环境 development: { - BASE_URL: 'http://192.168.110.54:8000', + BASE_URL: 'http://192.168.2.34:8000', API_PREFIX: '', // MQTT 配置 MQTT_HOST: '47.120.79.150', - MQTT_PORT: 8083, + MQTT_PORT: 9083, MQTT_USERNAME: 'admin', MQTT_PASSWORD: '#YtvpSfCNG' }, @@ -16,7 +16,7 @@ const config = { API_PREFIX: '', // MQTT 配置 MQTT_HOST: '47.120.79.150', - MQTT_PORT: 8083, + MQTT_PORT: 9083, MQTT_USERNAME: 'admin', MQTT_PASSWORD: '#YtvpSfCNG' } diff --git a/pages/6170/callPolice/index.vue b/pages/6170/callPolice/index.vue index 2be507b..d9ce625 100644 --- a/pages/6170/callPolice/index.vue +++ b/pages/6170/callPolice/index.vue @@ -188,7 +188,7 @@ const statusRes = await getdeviceSTatus({ functionMode: 2, batchId, - typeName, + typeName:'FunctionAccessBatchStatusRule', deviceImei, interval: 500 }, diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index de4b3ea..515f2e8 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -725,12 +725,12 @@ // 获取设备状态 // 4. 获取设备状态 let deviceImei = this.itemInfo.deviceImei - let typeName = this.itemInfo.typeName + //let typeName = this.itemInfo.typeName let batchId = '' const statusRes = await getdeviceSTatus({ functionMode: 1, batchId, - typeName, + typeName:'FunctionAccessStatusRule', deviceImei, interval: 800 }, @@ -907,13 +907,13 @@ }) return } - // 4. 获取设备状态 + // 4. 获取设备状态FunctionAccessBatchStatusRule 批量 let deviceImei = this.itemInfo.deviceImei let typeName = this.itemInfo.typeName const statusRes = await getdeviceSTatus({ functionMode: 2, batchId, - typeName, + typeName:'FunctionAccessBatchStatusRule', deviceImei, interval: 500 }, @@ -991,11 +991,11 @@ } // 4. 获取设备状态 let deviceImei = this.itemInfo.deviceImei - let typeName = this.itemInfo.typeName + //let typeName = this.itemInfo.typeName const statusRes = await getdeviceSTatus({ functionMode: 2, batchId, - typeName, + typeName:'FunctionAccessBatchStatusRule', deviceImei, interval: 500 }, diff --git a/pages/common/login/index.vue b/pages/common/login/index.vue index 7268a38..31457b8 100644 --- a/pages/common/login/index.vue +++ b/pages/common/login/index.vue @@ -60,7 +60,7 @@ data() { return { showView: false, - phone: '17671332251', //手机号码 + phone: '13800138002', //手机号码 code: "123456", //验证码 agreed: false, isCounting: false, diff --git a/pages/common/send/index.vue b/pages/common/send/index.vue index be71918..f064c70 100644 --- a/pages/common/send/index.vue +++ b/pages/common/send/index.vue @@ -157,7 +157,7 @@ export default { const statusRes = await getdeviceSTatus({ functionMode: 2, batchId, - typeName, + typeName:'FunctionAccessBatchStatusRule', deviceImei, interval: 500 }, diff --git a/utils/mqtt.js b/utils/mqtt.js index 0e93404..237434f 100644 --- a/utils/mqtt.js +++ b/utils/mqtt.js @@ -119,9 +119,8 @@ import Paho from 'paho-mqtt'; import allConfigs from '../config/index.js'; // 根据环境选择正确的配置 -const env = 'development'; //production //开发of线上 改这里就行 +const env = 'production'; //production //开发of线上 改这里就行 const config = allConfigs[env]; - class MqttClient { constructor() { this.client = null; diff --git a/utils/request.js b/utils/request.js index 23ad91f..b113555 100644 --- a/utils/request.js +++ b/utils/request.js @@ -1,5 +1,5 @@ import config from '../config/index.js'; -const env = 'development'; //production development //开发of线上 改这里就行 +const env = 'production'; //production development //开发of线上 改这里就行 const BASE = config[env]; const request = (options) => { console.log("options"+JSON.stringify(options),BASE.BASE_URL)