|
@@ -64,6 +64,7 @@
|
|
|
//首发版本 '1.1.0' 在线版不需要自动升级
|
|
//首发版本 '1.1.0' 在线版不需要自动升级
|
|
|
that.checkUpdate(that.curVersion); //开启自动升级
|
|
that.checkUpdate(that.curVersion); //开启自动升级
|
|
|
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 获取手机UUID
|
|
// 获取手机UUID
|
|
@@ -87,6 +88,27 @@
|
|
|
console.log('getDeviceInfo success: ' + JSON.stringify(e.uuid));
|
|
console.log('getDeviceInfo success: ' + JSON.stringify(e.uuid));
|
|
|
// 正式版打开
|
|
// 正式版打开
|
|
|
that.getServeIpAddress(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) {
|
|
fail: function (e) {
|
|
|
console.log('getDeviceInfo failed: ' + JSON.stringify(e));
|
|
console.log('getDeviceInfo failed: ' + JSON.stringify(e));
|
|
@@ -111,7 +133,6 @@
|
|
|
let param = {};
|
|
let param = {};
|
|
|
let postdata = qs.stringify(param);
|
|
let postdata = qs.stringify(param);
|
|
|
const h = this.$createElement;
|
|
const h = this.$createElement;
|
|
|
- console.log('QueryVueFramework');
|
|
|
|
|
QueryVueFramework(postdata).then(res => {
|
|
QueryVueFramework(postdata).then(res => {
|
|
|
let json = res;
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
if (json.Code == 0) {
|