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
c8a81d87
Commit
c8a81d87
authored
Aug 04, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of git.wxpai.cn:scrmgroup/pisns-forum-api into development
Conflicts: app/controllers/admin/forumThread.js
parents
f2a348e7
9dd900c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
httpService.js
app/service/httpService.js
+10
-10
No files found.
app/service/httpService.js
View file @
c8a81d87
...
@@ -33,11 +33,11 @@ exports.sendRequest = function(ent_code, mid, action, messageid, integral, exp)
...
@@ -33,11 +33,11 @@ exports.sendRequest = function(ent_code, mid, action, messageid, integral, exp)
integral
:
integral
||
0
,
integral
:
integral
||
0
,
exp
:
exp
||
0
exp
:
exp
||
0
};
};
//
redis.lpush('adapter-redis-to-ons', JSON.stringify(obj), function(err, reply) {
redis
.
lpush
(
'adapter-redis-to-ons'
,
JSON
.
stringify
(
obj
),
function
(
err
,
reply
)
{
//
if (err) {
if
(
err
)
{
//
console.error(err);
console
.
error
(
err
);
//
}
}
//
});
});
};
};
//推送文章记录
//推送文章记录
...
@@ -56,11 +56,11 @@ var sendThreadLogRequest = function(open_id, user_agent, origin_ip, method, nick
...
@@ -56,11 +56,11 @@ var sendThreadLogRequest = function(open_id, user_agent, origin_ip, method, nick
"source_channel"
:
source_channel
,
//分享入口渠道(0:官方直接分享;1:微信朋友圈;2:微信好友;3:QQ好友;4:腾讯微博;5:广告组;6:自媒体;)
"source_channel"
:
source_channel
,
//分享入口渠道(0:官方直接分享;1:微信朋友圈;2:微信好友;3:QQ好友;4:腾讯微博;5:广告组;6:自媒体;)
"source_open_id"
:
source_open_id
//分享人的open_id
"source_open_id"
:
source_open_id
//分享人的open_id
};
};
//
redis.publish('__pi_front_access_log_old__', JSON.stringify(obj), function(err, reply) {
redis
.
publish
(
'__pi_front_access_log_old__'
,
JSON
.
stringify
(
obj
),
function
(
err
,
reply
)
{
//
if (err) {
if
(
err
)
{
//
console.error(err);
console
.
error
(
err
);
//
}
}
//
});
});
};
};
var
getClientIP
=
function
(
req
)
{
var
getClientIP
=
function
(
req
)
{
...
...
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