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
f0d215e6
Commit
f0d215e6
authored
Nov 02, 2016
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送log 更新方式从publish为lpush
parent
b8bf81fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
httpService.js
app/service/httpService.js
+8
-1
No files found.
app/service/httpService.js
View file @
f0d215e6
...
...
@@ -106,11 +106,18 @@ var sendThreadLogRequest = function(open_id, user_agent, origin_ip, method, nick
"source_channel"
:
source_channel
,
//分享入口渠道(0:官方直接分享;1:微信朋友圈;2:微信好友;3:QQ好友;4:腾讯微博;5:广告组;6:自媒体;)
"source_open_id"
:
source_open_id
//分享人的open_id
};
redis
.
publish
(
'__pi_front_access_log_old__'
,
JSON
.
stringify
(
obj
),
function
(
err
,
reply
)
{
redis
.
lpush
(
"forum:list:access:log"
,
JSON
.
stringify
(
obj
),
function
(
err
,
reply
){
if
(
err
)
{
console
.
error
(
err
);
}
});
// redis.publish('__pi_front_access_log_old__', JSON.stringify(obj), function(err, reply) {
// if (err) {
// console.error(err);
// }
// });
};
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