Commit 9aeba3d0 by 朱建香

debug

parent 823f2321
......@@ -1046,11 +1046,15 @@ function setRemoteOpendoor(self, time){
if(window.iotDebug){
iotDebug.push('end: 远程开门'+'设备当前时间'+now.unix()+'通知时间'+time.unix());
}
if (window.iotDebug) {
iotDebug.upload(iot,'远程开门');
}
console.log(now.diff(time,'seconds'));
if(window.iotDebug){
iotDebug.push('end: 远程开门'+now.diff(time,'seconds')+'权限'+self.getRole()+'');
}
if(now.diff(time,'seconds') < config.pushMsg_timeout && now.diff(time,'seconds') >= 0 && (self.getRole() == 0)){
if(window.iotDebug){
iotDebug.push('end: 远程开门'+'进入展示');
}
self.setValueRemoteOpendoor(true);
self.setRemoteOpendoorDisabledFlag(false);
//停止响铃
......@@ -1074,6 +1078,9 @@ function setRemoteOpendoor(self, time){
}
},(config.remote_timeout-now.diff(time,'seconds'))*1000);
}
if (window.iotDebug) {
iotDebug.upload(iot,'远程开门');
}
}
//设置信息提示
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment