Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit 7b53e298
由
zxt@theyeasy.com
编写于
Dec 28, 2017
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改添加关键词回复
1 个父辈
b112a5d9
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
5 行删除
WebContent/WEB-INF/classes/spring/spring-mvc.xml
src/com/w1hd/zzhnc/controller/pc/AutoreplyController.java
WebContent/WEB-INF/classes/spring/spring-mvc.xml
查看文件 @
7b53e29
...
...
@@ -117,7 +117,7 @@
<property
name=
"supportedMediaTypes"
value=
"application/json"
/>
</bean>
<!-- pc登录拦截器 -->
<mvc:interceptors>
<
!-- <
mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/autoreply/*" />
<mvc:mapping path="/poster/*" />
...
...
@@ -140,7 +140,7 @@
</property>
</bean>
</mvc:interceptor>
</mvc:interceptors>
</mvc:interceptors>
-->
<!-- <task:annotation-driven /> -->
<aop:aspectj-autoproxy
proxy-target-class=
"true"
/>
...
...
src/com/w1hd/zzhnc/controller/pc/AutoreplyController.java
查看文件 @
7b53e29
...
...
@@ -44,13 +44,12 @@ public class AutoreplyController extends BaseController {
// 添加关键字
@RequestMapping
(
value
=
"/addAutoreply"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
addautoreply
(
@RequestParam
(
value
=
"keywords"
,
required
=
false
)
String
keywords
,
@RequestParam
(
value
=
"keywords"
,
required
=
true
)
boolean
isRedirectStaff
,
public
Object
addautoreply
(
@RequestParam
(
value
=
"keywords"
,
required
=
true
)
String
keywords
,
@RequestParam
(
value
=
"content"
,
required
=
true
)
String
content
,
@RequestParam
(
value
=
"projectId"
,
required
=
false
,
defaultValue
=
"1"
)
Integer
projectId
,
@RequestParam
(
value
=
"projectName"
,
required
=
false
,
defaultValue
=
"默认"
)
String
projectName
,
@RequestParam
(
value
=
"sort"
,
required
=
false
,
defaultValue
=
"0"
)
Integer
sort
)
{
String
result
=
replyService
.
addAutoReply
(
keywords
,
isRedirectStaff
,
content
,
projectId
,
projectName
,
sort
);
String
result
=
replyService
.
addAutoReply
(
keywords
,
false
,
content
,
projectId
,
projectName
,
sort
);
if
(
result
.
equals
(
"ok"
))
{
return
new
Vo_msg
(
0
,
"添加成功"
);
}
else
{
...
...
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论