Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
master-5.0
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
master-5.0
Commits
cb01541a
提交
cb01541a
authored
11月 21, 2019
作者:
malei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(DataLog): DistrictAnalysis
1.忠诚度 References: N/A
上级
bbbb2314
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
5 行删除
+7
-5
DataLogController.java
.../com/zrqx/statistics/bg/controller/DataLogController.java
+1
-1
DataLogServiceImpl.java
...va/com/zrqx/statistics/bg/service/DataLogServiceImpl.java
+5
-3
QueryVisitorLoyaltyForm.java
...zrqx/statistics/commons/form/QueryVisitorLoyaltyForm.java
+1
-1
没有找到文件。
app/statistics/src/main/java/com/zrqx/statistics/bg/controller/DataLogController.java
浏览文件 @
cb01541a
...
...
@@ -87,6 +87,6 @@ public class DataLogController {
@ApiOperation
(
"忠诚度"
)
@PostMapping
(
"/visitor/loyalty"
)
public
CallBack
<
JSONObject
>
getLoyalty
(
QueryVisitorLoyaltyForm
form
)
{
return
CallBack
.
success
(
service
.
loadLoyalty
(
form
));
return
CallBack
.
success
(
service
.
loadLoyalty
Polymerization
(
form
));
}
}
app/statistics/src/main/java/com/zrqx/statistics/bg/service/DataLogServiceImpl.java
浏览文件 @
cb01541a
...
...
@@ -593,18 +593,20 @@ public class DataLogServiceImpl extends BaseServiceImpl<DataLog, String> impleme
ch
.
getKey
()
);
JSONObject
objBody
=
null
;
try
{
byte
[]
res
=
HttpUtils
.
post
(
BaiduConfig
.
API_URL
,
this
.
generateHttpRequestParam
(
body
),
CHARSET
);
String
s
=
new
String
(
res
);
JSONObject
obj
=
JSON
.
parseObject
(
s
);
objBody
=
obj
.
getJSONObject
(
"body"
);
JSONObject
objBody
=
obj
.
getJSONObject
(
"body"
);
JSONObject
ress
=
objBody
.
getJSONArray
(
"data"
).
getJSONObject
(
0
).
getJSONObject
(
"result"
);
result
.
put
(
ch
.
getKey
(),
ress
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取访客属性失败"
,
e
);
}
});
return
null
;
return
result
;
}
private
String
generateHttpRequestParam
(
BaiduStatisticsBody
body
)
{
...
...
app/statistics/src/main/java/com/zrqx/statistics/commons/form/QueryVisitorLoyaltyForm.java
浏览文件 @
cb01541a
...
...
@@ -22,7 +22,7 @@ public class QueryVisitorLoyaltyForm {
@ApiModelProperty
(
"游客;全部:all,新游客:new,老访客:old"
)
private
String
visitor
;
@ApiModelProperty
(
"character_pages:访问页数, character_depth:访问深度, character_time:访问时长, character_lasttime:上次访问时间"
)
@ApiModelProperty
(
"
如果选择调用一次接口返回组装数据,可以忽略该参数;
character_pages:访问页数, character_depth:访问深度, character_time:访问时长, character_lasttime:上次访问时间"
)
private
String
character
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论