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
2f893cc2
Commit
2f893cc2
authored
Jul 06, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fd5b23c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
httpService.js
app/service/httpService.js
+5
-5
No files found.
app/service/httpService.js
View file @
2f893cc2
...
...
@@ -48,13 +48,13 @@ var sendThreadLogRequest = function(open_id, user_agent, origin_ip, method, nick
"nick_name"
:
nick_name
,
//昵称,默认为会员名,如果没有则返回当前渠道的nick_name(如微信昵称)
"ent_code"
:
ent_code
,
//企业号
"mid"
:
mid
,
"business_type"
:
business_type
,
//业务分类,用于标识不同的业务类型(如news,forum等)
"business_id"
:
business_id
,
//业务记录的唯一标识,如news_id等
"business_type"
:
business_
id
?
business_type
+
'.'
+
business_id
:
business_
type
,
//业务分类,用于标识不同的业务类型(如news,forum等)
"business_id"
:
business_id
?
business_id
:
null
,
//业务记录的唯一标识,如news_id等
"request_time"
:
request_time
||
new
Date
(),
//发起请求的时间
"source_channel"
:
source_channel
,
//分享入口渠道(0:官方直接分享;1:微信朋友圈;2:微信好友;3:QQ好友;4:腾讯微博;5:广告组;6:自媒体;)
"source_open_id"
:
source_open_id
//分享人的open_id
};
redis
.
lpush
(
'adapter-redis-to-ons
'
,
JSON
.
stringify
(
obj
),
function
(
err
,
reply
)
{
redis
.
publish
(
'__pi_front_access_log_old__
'
,
JSON
.
stringify
(
obj
),
function
(
err
,
reply
)
{
if
(
err
)
{
console
.
error
(
err
);
}
...
...
@@ -93,11 +93,11 @@ exports.createLog = function(req,source,info,type,thread_type,thread,p_thread) {
};
//推送
sendThreadLogRequest
(
req
.
session
.
mobileForum
User
.
openId
,
req
.
session
.
open
User
.
openId
,
req
.
headers
[
'user-agent'
],
getClientIP
(
req
),
null
,
req
.
session
.
user
.
nick_n
ame
,
req
.
session
.
openUser
.
nickN
ame
,
req
.
session
.
user
.
ent_code
,
req
.
session
.
openUser
.
mid
,
'forum.'
+
info
,
...
...
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