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
47493325
Commit
47493325
authored
Oct 12, 2015
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'newfunc_1009_memberlevel' into SANDBOX
parents
66dcbfb6
8ab47f24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
util.js
app/utils/util.js
+6
-7
No files found.
app/utils/util.js
View file @
47493325
...
@@ -37,26 +37,25 @@ exports.loadLevel=function(ent_code,items,callback){
...
@@ -37,26 +37,25 @@ exports.loadLevel=function(ent_code,items,callback){
}
}
},
function
(
e
,
r
,
body
)
{
},
function
(
e
,
r
,
body
)
{
if
(
body
&&
body
.
data
)
{
if
(
body
&&
body
.
data
)
{
console
.
log
(
body
.
data
);
//
console.log(body.data);
_
.
forEach
(
items
,
function
(
d
,
i
)
{
_
.
forEach
(
items
,
function
(
d
,
i
)
{
if
(
items
[
i
].
toObject
)
{
if
(
items
[
i
].
toObject
)
{
items
[
i
]
=
items
[
i
].
toObject
();
items
[
i
]
=
items
[
i
].
toObject
();
}
}
_
.
forEach
(
body
.
data
,
function
(
r
,
j
)
{
_
.
forEach
(
body
.
data
,
function
(
r
,
j
)
{
if
(
d
.
from
&&
d
.
from
.
uid
===
r
.
user
.
openId
){
if
(
d
.
from
&&
d
.
from
.
uid
===
r
.
user
.
id
){
items
[
i
].
from
.
exp
=
r
.
exp
;
items
[
i
].
from
.
exp
=
r
.
exp
;
}
}
if
(
d
.
to
&&
d
.
to
.
uid
===
r
.
user
.
i
d
){
if
(
d
.
to
&&
d
.
to
.
uid
===
r
.
user
.
openI
d
){
items
[
i
].
to
.
exp
=
r
.
exp
;
items
[
i
].
to
.
exp
=
r
.
exp
;
}
}
if
(
d
.
commentLevel1From
&&
d
.
commentLevel1From
.
uid
===
r
.
user
.
i
d
){
if
(
d
.
commentLevel1From
&&
d
.
commentLevel1From
.
uid
===
r
.
user
.
openI
d
){
items
[
i
].
commentLevel1From
.
exp
=
r
.
exp
;
items
[
i
].
commentLevel1From
.
exp
=
r
.
exp
;
}
}
if
(
d
.
commentLevel2From
&&
d
.
commentLevel2From
.
uid
===
r
.
user
.
i
d
){
if
(
d
.
commentLevel2From
&&
d
.
commentLevel2From
.
uid
===
r
.
user
.
openI
d
){
items
[
i
].
commentLevel2From
.
exp
=
r
.
exp
;
items
[
i
].
commentLevel2From
.
exp
=
r
.
exp
;
}
}
if
(
d
.
commentLevel2ThreadFrom
&&
d
.
commentLevel2ThreadFrom
.
uid
===
r
.
user
.
i
d
){
if
(
d
.
commentLevel2ThreadFrom
&&
d
.
commentLevel2ThreadFrom
.
uid
===
r
.
user
.
openI
d
){
items
[
i
].
commentLevel2ThreadFrom
.
exp
=
r
.
exp
;
items
[
i
].
commentLevel2ThreadFrom
.
exp
=
r
.
exp
;
}
}
});
});
...
...
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