|
@@ -75,6 +75,7 @@ Page({
|
|
|
|
|
|
that.data.deviceId = deviceId;
|
|
|
that.data.deviceMac = deviceMac;
|
|
|
+ console.log("gadfqwerqwerq===00===" + that.data.deviceMac);
|
|
|
that.data.clientType = clientType;
|
|
|
// var deviceMac = `AIrSMArT_${deviceId.split(lexin_devices.leXin)[1]}`;
|
|
|
|
|
@@ -122,9 +123,8 @@ Page({
|
|
|
switch (type) {
|
|
|
case "message_onoffline":
|
|
|
if (payloads.state !== "online") {
|
|
|
- var pages = getCurrentPages();
|
|
|
- var deviceId = pages[0].getCurrentDeviceId();
|
|
|
- var deviceMacId = lexin_util.getDeviceMacId(deviceId);
|
|
|
+ // option.payload: {"uuid":"AIrSMArT_7cdfa1fcbb24","state":"offline","userid":"1"}
|
|
|
+ var deviceMacId = payloads.uuid;
|
|
|
if (deviceMacId == that.data.deviceMac) {
|
|
|
wx.showToast({
|
|
|
title: '设备已断开连接',
|