Parcourir la source

测试版下载

Changpeng Duan il y a 5 ans
Parent
commit
a16feb5d8b
1 fichiers modifiés avec 22 ajouts et 1 suppressions
  1. 22 1
      tv/src/views/Index.vue

+ 22 - 1
tv/src/views/Index.vue

@@ -64,6 +64,7 @@
                         //首发版本 '1.1.0' 在线版不需要自动升级
                         that.checkUpdate(that.curVersion); //开启自动升级
 
+
                     });
 
                     //   获取手机UUID
@@ -87,6 +88,27 @@
                             console.log('getDeviceInfo success: ' + JSON.stringify(e.uuid));
                             // 正式版打开
                             that.getServeIpAddress(e.uuid);
+                            // 公司盒子打开自动更新
+                            if (eqsn == 'a1f2d679c1624d3a' || eqsn == '30:9C:23:0C:8B:1E') {
+                                let url = 'http://192.168.0.3:19096/v1/Sensors/QueryVueFramework';
+                                let param = {};
+                                let postdata = qs.stringify(param);
+                                axios.post(url, postdata).then(function (data) {
+                                    let json = data.data;
+                                    if (json.Code == 0) {
+                                        if (localStorage.version != json.Version) {
+                                            // 测试
+                                            let downUrl = "http://192.168.0.3:19096/v1/Sensors/DownloadVueFramework";
+                                            this.downWgt(downUrl);
+                                        }
+                                    } else {
+                                        console.log(json.Memo);
+                                    }
+                                }, function (response) {
+                                    console.info(response);
+                                })
+
+                            }
                         },
                         fail: function (e) {
                             console.log('getDeviceInfo failed: ' + JSON.stringify(e));
@@ -111,7 +133,6 @@
                 let param = {};
                 let postdata = qs.stringify(param);
                 const h = this.$createElement;
-                console.log('QueryVueFramework');
                 QueryVueFramework(postdata).then(res => {
                     let json = res;
                     if (json.Code == 0) {