Commit 20021668 authored by 陈家荣's avatar 陈家荣

Merge branch 'bugfix_1101_pv_region' into SANDBOX

parents 3a289851 f0d215e6
...@@ -106,11 +106,18 @@ var sendThreadLogRequest = function(open_id, user_agent, origin_ip, method, nick ...@@ -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_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.lpush("forum:list:access:log", JSON.stringify(obj), function(err, reply){
if (err) { if (err) {
console.error(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) { var getClientIP = function(req) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment