Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
b5b91402
Commit
b5b91402
authored
Sep 16, 2015
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'behavior_limition_remould'
parents
d1b86a01
4fa7b2d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
forumIdentifyUser.js
app/controllers/admin/forumIdentifyUser.js
+9
-13
No files found.
app/controllers/admin/forumIdentifyUser.js
View file @
b5b91402
...
...
@@ -27,14 +27,14 @@ function date_format(date) {
//判断时间是否在指定范围
function
compareTime
(
now
,
begin_time
,
end_time
)
{
now
=
date_format
(
now
);
begin_time
=
date_format
(
begin_time
);
end_time
=
date_format
(
end_time
);
if
(
moment
(
now
).
isSame
(
begin_time
)
||
moment
(
now
).
isSame
(
end_time
))
{
//如果等于开始时间或者结束时间
return
true
;
}
else
{
return
moment
(
now
).
isBetween
(
begin_time
,
end_time
)
;
}
var
begin_time
=
new
Date
(
begin_time
).
getTime
(),
ent_time
=
new
Date
(
end_time
).
getTime
(),
this_now
=
new
Date
(
now
).
getTime
(
);
if
(
this_now
>=
begin_time
&&
this_now
<=
ent_time
){
return
true
;
}
else
{
return
false
;
}
}
...
...
@@ -96,15 +96,11 @@ router.get('/user/from/share', function(req, res, next) {
}
}
});
// httpService.sendRequest(ent_code,mid,action);
// res.status(200).end();
});
//检查用户权限 旧版
router
.
post
(
'/user/checkLimitAction'
,
function
(
req
,
res
,
next
)
{
var
entity
=
req
.
body
;
var
userId
=
entity
.
mid
;
var
userId
=
req
.
body
.
userId
;
if
(
userId
){
var
array
=
[];
...
...
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