Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-analysis
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.online.exam
pica-cloud-analysis
提交
52cde531
提交
52cde531
编写于
9月 14, 2018
作者:
minghao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test:加入配置項顯示功能
上级
b56e950e
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
1 行删除
+18
-1
PropertiesConfiguration.java
...nalysis/server/configuration/PropertiesConfiguration.java
+8
-0
AnalysisController.java
...e/exam/analysis/server/controller/AnalysisController.java
+10
-1
未找到文件。
server/src/main/java/com/pica/cloud/online/exam/analysis/server/configuration/PropertiesConfiguration.java
浏览文件 @
52cde531
...
...
@@ -122,6 +122,14 @@ public class PropertiesConfiguration {
return
"PropertiesConfiguration{"
+
"userExpire='"
+
userExpire
+
'\''
+
", guestExpire='"
+
guestExpire
+
'\''
+
", fileUrl='"
+
fileUrl
+
'\''
+
", neteaseAntispamTextApiUrl='"
+
neteaseAntispamTextApiUrl
+
'\''
+
", neteaseAntispamTextBusinessId='"
+
neteaseAntispamTextBusinessId
+
'\''
+
", neteaseAntispamTextAdBusinessId='"
+
neteaseAntispamTextAdBusinessId
+
'\''
+
", neteaseAntispamImageApiUrl='"
+
neteaseAntispamImageApiUrl
+
'\''
+
", neteaseAntispamImageBusinessId='"
+
neteaseAntispamImageBusinessId
+
'\''
+
", neteaseAntispamSecretId='"
+
neteaseAntispamSecretId
+
'\''
+
", neteaseAntispamSecretKey='"
+
neteaseAntispamSecretKey
+
'\''
+
'}'
;
}
}
server/src/main/java/com/pica/cloud/online/exam/analysis/server/controller/AnalysisController.java
浏览文件 @
52cde531
...
...
@@ -59,13 +59,22 @@ public class AnalysisController {
@Autowired
private
CHCRankingListService
rankingListService
;
@Autowired
private
PropertiesConfiguration
propertiesConfiguration
;
/**
* TODO: chc错题解析活动和psa的活动id 需要前端传入
*/
static
final
Integer
CHC_ANALYSIS_ID
=
1
;
static
final
Integer
PSA_ANALYSIS_ID
=
2
;
@ApiOperation
(
value
=
"获取活动详情"
,
response
=
PicaResponse
.
class
)
@ApiOperation
(
value
=
"获取活动详情"
,
response
=
PicaResponse
.
class
)
@RequestMapping
(
value
=
"/config"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
public
String
config
()
{
return
propertiesConfiguration
.
toString
();
}
@ApiOperation
(
value
=
"获取活动详情"
,
response
=
PicaResponse
.
class
)
@RequestMapping
(
value
=
"/activityDetail"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
public
PicaResponse
<
CHCAnalysisDto
>
getActivityDetail
(
@RequestParam
(
required
=
false
)
Integer
id
,
@RequestHeader
(
required
=
false
)
String
token
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录