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
提交
26276229
提交
26276229
编写于
8月 27, 2018
作者:
minghao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feature: 新增网易反垃圾配置 新增user为空的日志
上级
364eedce
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
67 行增加
和
51 行删除
+67
-51
StarReplyReq.java
...a/cloud/online/exam/analysis.common/req/StarReplyReq.java
+0
-35
PropertiesConfiguration.java
...nalysis/server/configuration/PropertiesConfiguration.java
+66
-0
AnalysisController.java
...e/exam/analysis/server/controller/AnalysisController.java
+1
-0
AntiSpamController.java
...e/exam/analysis/server/controller/AntiSpamController.java
+0
-16
未找到文件。
common/src/main/java/com/pica/cloud/online/exam/analysis.common/req/StarReplyReq.java
已删除
100644 → 0
浏览文件 @
364eedce
package
com
.
pica
.
cloud
.
online
.
exam
.
analysis
.
common
.
req
;
/**
* @author wuminghao
* @date 2018/8/16 17:23
*/
public
class
StarReplyReq
{
private
Integer
analysisId
;
private
Integer
roundId
;
private
Integer
replyId
;
public
Integer
getAnalysisId
()
{
return
analysisId
;
}
public
void
setAnalysisId
(
Integer
analysisId
)
{
this
.
analysisId
=
analysisId
;
}
public
Integer
getRoundId
()
{
return
roundId
;
}
public
void
setRoundId
(
Integer
roundId
)
{
this
.
roundId
=
roundId
;
}
public
Integer
getReplyId
()
{
return
replyId
;
}
public
void
setReplyId
(
Integer
replyId
)
{
this
.
replyId
=
replyId
;
}
}
\ No newline at end of file
server/src/main/java/com/pica/cloud/online/exam/analysis/server/configuration/PropertiesConfiguration.java
浏览文件 @
26276229
...
...
@@ -16,6 +16,24 @@ public class PropertiesConfiguration {
@Value
(
"${common.file.url}"
)
private
String
fileUrl
;
@Value
(
"${netease.antispam.text.apiurl}"
)
private
String
neteaseAntispamTextApiUrl
;
@Value
(
"${netease.antispam.text.businessid}"
)
private
String
neteaseAntispamTextBusinessId
;
@Value
(
"${netease.antispam.image.apiurl}"
)
private
String
neteaseAntispamImageApiUrl
;
@Value
(
"${netease.antispam.image.businessid}"
)
private
String
neteaseAntispamImageBusinessId
;
@Value
(
"${netease.antispam.secretid}"
)
private
String
neteaseAntispamSecretId
;
@Value
(
"${netease.antispam.secretkey}"
)
private
String
neteaseAntispamSecretKey
;
public
String
getUserExpire
()
{
return
userExpire
;
}
...
...
@@ -40,6 +58,54 @@ public class PropertiesConfiguration {
this
.
fileUrl
=
fileUrl
;
}
public
String
getNeteaseAntispamTextApiUrl
()
{
return
neteaseAntispamTextApiUrl
;
}
public
void
setNeteaseAntispamTextApiUrl
(
String
neteaseAntispamTextApiUrl
)
{
this
.
neteaseAntispamTextApiUrl
=
neteaseAntispamTextApiUrl
;
}
public
String
getNeteaseAntispamTextBusinessId
()
{
return
neteaseAntispamTextBusinessId
;
}
public
void
setNeteaseAntispamTextBusinessId
(
String
neteaseAntispamTextBusinessId
)
{
this
.
neteaseAntispamTextBusinessId
=
neteaseAntispamTextBusinessId
;
}
public
String
getNeteaseAntispamImageApiUrl
()
{
return
neteaseAntispamImageApiUrl
;
}
public
void
setNeteaseAntispamImageApiUrl
(
String
neteaseAntispamImageApiUrl
)
{
this
.
neteaseAntispamImageApiUrl
=
neteaseAntispamImageApiUrl
;
}
public
String
getNeteaseAntispamImageBusinessId
()
{
return
neteaseAntispamImageBusinessId
;
}
public
void
setNeteaseAntispamImageBusinessId
(
String
neteaseAntispamImageBusinessId
)
{
this
.
neteaseAntispamImageBusinessId
=
neteaseAntispamImageBusinessId
;
}
public
String
getNeteaseAntispamSecretId
()
{
return
neteaseAntispamSecretId
;
}
public
void
setNeteaseAntispamSecretId
(
String
neteaseAntispamSecretId
)
{
this
.
neteaseAntispamSecretId
=
neteaseAntispamSecretId
;
}
public
String
getNeteaseAntispamSecretKey
()
{
return
neteaseAntispamSecretKey
;
}
public
void
setNeteaseAntispamSecretKey
(
String
neteaseAntispamSecretKey
)
{
this
.
neteaseAntispamSecretKey
=
neteaseAntispamSecretKey
;
}
@Override
public
String
toString
()
{
return
"PropertiesConfiguration{"
+
...
...
server/src/main/java/com/pica/cloud/online/exam/analysis/server/controller/AnalysisController.java
浏览文件 @
26276229
...
...
@@ -168,6 +168,7 @@ public class AnalysisController {
PICAUser
user
=
CommonUtils
.
getUserByToken
(
redisClient
,
token
);
if
(
user
==
null
)
{
System
.
out
.
println
(
"starrecord: user=null token="
+
token
);
return
ReturnUtil
.
getPicaResponse
(
PicaResultCode
.
SYSTEM_INVALID_TOKEN
);
}
...
...
server/src/main/java/com/pica/cloud/online/exam/analysis/server/controller/AntiSpamController.java
已删除
100644 → 0
浏览文件 @
364eedce
package
com
.
pica
.
cloud
.
online
.
exam
.
analysis
.
server
.
controller
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author wuminghao
* @date 2018/8/23 15:42
*/
@RestController
@RequestMapping
(
"/antispam"
)
@Api
(
value
=
"垃圾检测"
,
description
=
"检查文本、图像违禁词汇及广告"
)
public
class
AntiSpamController
{
}
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录