Selaa lähdekoodia

feature: 测试环境,增加2AXD设备

332777428@qq.com 4 kuukautta sitten
vanhempi
commit
3421032c66
3 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  1. 1 1
      app.js
  2. 5 2
      pages/deviceList/deviceList.js
  3. 2 0
      utils/lexin/devices.js

+ 1 - 1
app.js

@@ -15,7 +15,7 @@ const iosHost = 'wxs://mqtt.test.radio1964.com:8884';
 const androidHost = 'wxs://mqtt.test.radio1964.com:8884'
 App({
   globalData: {
-    isRelease: true,
+    isRelease: false,
     is_debug: 2, // 1 测试环境 // 2正式环境
     baseUrl: env.prod.baseUrl,
 

+ 5 - 2
pages/deviceList/deviceList.js

@@ -23,8 +23,11 @@ Page({
     }
 
     ///数据请求
-    dRequest.deviceList({ unShowLoad: true }).then((res) => {
+    dRequest.deviceList({
+      unShowLoad: true
+    }).then((res) => {
       if (res) {
+        console.log("gadsfqwerqwerqr===" + JSON.stringify(res));
         that.setDeviceList(res, true);
       }
     });
@@ -58,7 +61,7 @@ Page({
       that.setData({
         deviceList: devices
       });
-    } catch (e) { }
+    } catch (e) {}
   },
 
   deviceTap(e) {

+ 2 - 0
utils/lexin/devices.js

@@ -15,6 +15,8 @@ const clientTypes = ["MW-2AX(WIFI)", "MW-2AX(WIFI-N)", "MW-2AX(A)",
   "MW-SR1(4G_WIFI_MEIZU01)",
   "MW-Mate X(4G_WIFI)",
   "MW-X4 (BZK)",
+  ///君正
+  "MW-2AXD",
 ];
 
 module.exports = {