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
efbcc8e7
Commit
efbcc8e7
authored
Jul 22, 2015
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
444
parent
08c764f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
forumLimitActionRef.js
app/controllers/admin/forumLimitActionRef.js
+14
-13
No files found.
app/controllers/admin/forumLimitActionRef.js
View file @
efbcc8e7
...
...
@@ -47,23 +47,24 @@ router.post('/limitActionRef/createOrUpdate', function(req, res, next) {
console
.
error
(
err
);
res
.
json
(
returnCode
.
BUSY
);
}
for
(
var
i
in
selects
)
{
for
(
var
j
in
results
)
{
if
(
selects
[
i
]
===
results
[
j
].
_id
.
toString
())
{
var
begin_time
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
);
var
end_time
=
moment
(
new
Date
()).
add
(
results
[
j
].
limit_time
,
'days'
).
format
(
'YYYY-MM-DD'
);
var
obj
=
{
limit_action
:
selects
[
i
],
limit_action_type
:
results
[
j
].
limit_action_type
,
begin_time
:
begin_time
,
end_time
:
end_time
if
(
selects
&&
results
){
for
(
var
i
=
0
;
i
<
selects
.
length
;
i
+=
1
)
{
for
(
var
j
=
0
;
j
<
results
.
length
;
j
+=
1
){
if
(
selects
[
i
]
===
results
[
j
].
_id
.
toString
())
{
var
begin_time
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
);
var
end_time
=
moment
(
new
Date
()).
add
(
results
[
j
].
limit_time
,
'days'
).
format
(
'YYYY-MM-DD'
);
var
obj
=
{
limit_action
:
selects
[
i
],
limit_action_type
:
results
[
j
].
limit_action_type
,
begin_time
:
begin_time
,
end_time
:
end_time
}
limit_actions
.
push
(
obj
);
break
;
}
limit_actions
.
push
(
obj
);
break
;
}
}
}
var
forumLimitActionRef
=
{
ent_code
:
ent_code
,
mid
:
mid
,
...
...
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