Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DoorLock
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
felix
DoorLock
Commits
6803065e
Commit
6803065e
authored
Dec 27, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1:uloop参数更改
parent
89fc4d3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
dev/src/public/uloop.js
+2
-2
dev/src/public/unotify.js
+1
-1
dev/src/view/device/v_index.js
+1
-1
No files found.
dev/src/public/uloop.js
View file @
6803065e
...
...
@@ -11,7 +11,7 @@ class Loop{
this
.
watcher
=
null
;
this
.
time
=
null
;
this
.
loopContent
=
params
.
loopContent
;
this
.
time
out
=
params
.
timeout
||
10
;
this
.
time
s
=
params
.
times
||
10
;
this
.
fincb
=
params
.
fincb
;
this
.
intervalTime
=
params
.
interval
.
delay
;
this
.
intervalcb
=
params
.
interval
.
cb
;
...
...
@@ -82,7 +82,7 @@ class Loop{
this
.
handle
=
setInterval
(()
=>
{
times
++
;
console
.
log
(
'times'
+
times
);
if
(
times
>
this
.
time
out
){
if
(
times
>
this
.
time
s
){
this
.
clearTime
();
this
.
canDo
=
false
;
this
.
fincb
.
error
(
'timeout'
);
...
...
dev/src/public/unotify.js
View file @
6803065e
...
...
@@ -23,7 +23,7 @@ class unotify{
loopContent
:
()
=>
{
return
self
.
getCidOnce
();
},
time
out
:
times
,
time
s
:
times
,
interval
:{
delay
:
1000
,
cb
:
{
...
...
dev/src/view/device/v_index.js
View file @
6803065e
...
...
@@ -689,7 +689,7 @@ async function loopGetLockInfo(self, delay, timeout){
return
iot
.
business
.
api
.
send
(
'lock/getNewInfo'
,
urlParams
,
true
,
false
);
// return plus.push.getClientInfo().clientid;
},
time
out
:
3
,
time
s
:
3
,
interval
:{
delay
:
config
.
intervalTime
*
1000
,
cb
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment