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
2b568273
Commit
2b568273
authored
Oct 01, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1001_forum_share' into 'SANDBOX'
1001 forum share 分享带来用户 See merge request
!3
parents
b4999fb1
a609bb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
forumIdentifyUser.js
app/controllers/admin/forumIdentifyUser.js
+12
-12
No files found.
app/controllers/admin/forumIdentifyUser.js
View file @
2b568273
...
...
@@ -77,25 +77,25 @@ router.post('/user/identifyUser',function(req,res,next){
});
//微信分享带来用户
router
.
get
(
'/user/from/share'
,
function
(
req
,
res
,
next
)
{
var
userId
=
req
.
session
.
mobileForumUser
.
userId
;
//
var userId = req.session.mobileForumUser.userId;
var
mid
=
req
.
query
.
mid
,
action
=
req
.
query
.
action
,
ent_code
=
req
.
query
.
ent_code
;
forumLimitOperationService
.
checkLimitOperationProhibitionAddIntegral
(
userId
,
function
(
err
,
flag
){
if
(
err
){
console
.
error
(
err
);
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
if
(
flag
){
res
.
json
(
returnCode
.
PROHIBITION_OF_SPEECH
);
}
else
{
//
forumLimitOperationService.checkLimitOperationProhibitionAddIntegral(userId, function(err, flag){
//
if(err){
//
console.error(err);
//
res.json(returnCode.PROHIBITION_OF_SPEECH);
//
}else{
//
if(flag){
//
res.json(returnCode.PROHIBITION_OF_SPEECH);
//
}else{
httpService
.
sendRequest
(
ent_code
,
mid
,
action
);
res
.
status
(
200
).
end
();
}
}
});
//
}
//
}
//
});
});
//检查用户权限 旧版
...
...
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