Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
茶陵後
cskefu
提交
44a20cd6
C
cskefu
项目概览
茶陵後
/
cskefu
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cskefu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
44a20cd6
编写于
3月 17, 2021
作者:
Y
Yu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix #421 encode im inject url
上级
fe4ddd24
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
25 deletion
+5
-25
README.md
README.md
+1
-1
contact-center/Dockerfile
contact-center/Dockerfile
+2
-2
contact-center/app/src/main/java/com/chatopera/cc/controller/apps/IMController.java
...n/java/com/chatopera/cc/controller/apps/IMController.java
+1
-1
contact-center/app/src/main/resources/templates/apps/im/index.pug
...center/app/src/main/resources/templates/apps/im/index.pug
+1
-21
未找到文件。
README.md
浏览文件 @
44a20cd6
...
...
@@ -294,4 +294,4 @@ Chatopera 机器人平台包括知识库、多轮对话、意图识别和语音
<a href="https://bot.chatopera.com" target="_blank">
<img src="https://static-public.chatopera.com/assets/images/64531083-3199aa80-d341-11e9-86cd-3a3ed860b14b.png" width="800">
</a>
</p>
</p>
\ No newline at end of file
contact-center/Dockerfile
浏览文件 @
44a20cd6
...
...
@@ -10,7 +10,7 @@ ENV APPLICATION_CUSTOMER_ENTITY=$APPLICATION_CUSTOMER_ENTITY
ENV
APPLICATION_BUILD_DATESTR=$APPLICATION_BUILD_DATESTR
LABEL
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/chatopera/c
osin
"
org.label-schema.vcs-url="https://github.com/chatopera/c
skefu
"
# COPY $PWD/assets/aliyun.sources.list /etc/apt/sources.list
# install amazon jdk corretto
...
...
@@ -47,4 +47,4 @@ RUN chmod +x /opt/chatopera/*.sh
WORKDIR
/opt/chatopera
EXPOSE
8030-8050
CMD
["./docker-entrypoint.sh"]
\ No newline at end of file
CMD
["./docker-entrypoint.sh"]
contact-center/app/src/main/java/com/chatopera/cc/controller/apps/IMController.java
浏览文件 @
44a20cd6
...
...
@@ -696,7 +696,7 @@ public class IMController extends Handler {
map
.
addAttribute
(
"title"
,
title
);
}
if
(
StringUtils
.
isNotBlank
(
traceid
))
{
map
.
addAttribute
(
"url"
,
url
);
map
.
addAttribute
(
"url"
,
URLEncoder
.
encode
(
url
,
"utf-8"
)
);
}
map
.
addAttribute
(
"cskefuport"
,
request
.
getServerPort
());
...
...
contact-center/app/src/main/resources/templates/apps/im/index.pug
浏览文件 @
44a20cd6
...
...
@@ -15,7 +15,6 @@ html
script(src='/js/jquery-1.10.2.min.js')
script(type='text/javascript', src='/im/js/kindeditor/kindeditor.js')
script(type='text/javascript', src='/im/js/kindeditor/lang/zh-CN.js')
script(type='text/javascript', src='/im/js/html2canvas.js')
script(src='/im/js/socket.io.js')
script(src='/im/js/dayjs.min.js')
script(type='text/javascript').
...
...
@@ -25,11 +24,10 @@ html
newmessage['mp3'] = '/images/message.mp3';
ring['mp3'] = '/images/ring.mp3';
KindEditor.lang({
html2canvas: '截图',
evaluation: '满意度评价'
});
KindEditor.ready(function (K) {
var items = ['emoticons', 'image', 'insertfile', '
html2canvas', '
evaluation'];
var items = ['emoticons', 'image', 'insertfile', 'evaluation'];
if (window.opener == null) {
items = ['emoticons', 'image', 'insertfile', 'evaluation'];
}
...
...
@@ -48,7 +46,6 @@ html
filterMode: true,
items: items,
// items: ['emoticons', 'image', 'html2canvas'], //w4l客户需求,访客不允许上传文件
htmlTags: {
img: ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'],
br: []
...
...
@@ -159,16 +156,6 @@ html
});
});
KindEditor.plugin('html2canvas', function (K) {
var editor = this, name = 'html2canvas';
editor.clickToolbar(name, function () {
if (window.opener != null) {
window.opener.postMessage('screenshots', "*");
} else {
alert('无法截图,请打开页面')
}
});
});
KindEditor.options.cssData = "body { font-size: 15px; font-family:'Microsoft Yahei', 'Helvetica', 'Simsun', 'Arial';}";
var R3Ajax = {
ajax: function (opt) {
...
...
@@ -352,13 +339,6 @@ html
// kindeditor
style.
.ke-icon-html2canvas {
background-image: url(img/cutimage.png);
background-position: 0px 0px;
width: 16px;
height: 16px;
}
.ke-icon-evaluation {
background-image: url(img/evaluationa.png);
background-position: 0px 0px;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录