Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
nizhengjia888
cskefu
提交
0ec78e49
C
cskefu
项目概览
nizhengjia888
/
cskefu
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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 搜索 >>
提交
0ec78e49
编写于
5月 10, 2021
作者:
Chatopera 研发团队
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'osc' of github.com:chatopera/cskefu into osc
上级
b7e8b27e
eb644a02
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
57 addition
and
5 deletion
+57
-5
contact-center/app/src/main/java/com/chatopera/cc/util/SystemEnvHelper.java
.../src/main/java/com/chatopera/cc/util/SystemEnvHelper.java
+15
-3
public/plugins/README.md
public/plugins/README.md
+42
-2
未找到文件。
contact-center/app/src/main/java/com/chatopera/cc/util/SystemEnvHelper.java
浏览文件 @
0ec78e49
...
...
@@ -68,7 +68,7 @@ public class SystemEnvHelper {
* @return
*/
public
static
String
parseFromApplicationProps
(
final
String
property
)
{
// 将 propert转化为环境变量
// 将 propert
y
转化为环境变量
String
P
=
StringUtils
.
upperCase
(
property
);
P
=
StringUtils
.
replaceChars
(
P
,
"-"
,
"_"
);
...
...
@@ -82,14 +82,26 @@ public class SystemEnvHelper {
}
/**
* 记载application.properties
* Get properties filename
* @return
*/
private
static
String
getPropsFileName
()
{
String
profile
=
getenv
(
"SPRING_PROFILES_ACTIVE"
,
""
);
if
(
StringUtils
.
isNotBlank
(
profile
))
{
return
"application-"
+
profile
+
".properties"
;
}
return
"application.properties"
;
}
/**
* 加载 application.properties
*
* @return
*/
private
static
Properties
getProps
()
{
if
(
props
==
null
)
{
try
(
InputStream
input
=
SystemEnvHelper
.
class
.
getClassLoader
().
getResourceAsStream
(
"application.properties"
))
{
getPropsFileName
()
))
{
// load a properties file
props
=
new
Properties
();
props
.
load
(
input
);
...
...
public/plugins/README.md
浏览文件 @
0ec78e49
# 春松客服插件
此目录包含春松客服的开源的插件,每个插件授权参考各子目录。
本文件夹包含春松客服的开源的插件,每个插件授权参考各子目录。
## 规范
目前,春松客服插件安装是在命令行终端内完成:使用 Bash Shell 命令,链接插件源码到春松客服源码,然后编译打包 WAR 后得到插件功能。
> 提示:Windows 上使用 Git Bash 获得 Bash Shell, [https://git-scm.com/downloads](https://git-scm.com/downloads)。
不同的插件均遵循以下的规范。
### 插件安装
执行命令:
```
cd plugins/PLUGIN
./scripts/install.sh
```
其中,
`PLUGIN`
是插件的名字。
### 卸载插件
执行命令:
```
cd plugins/PLUGIN
./scripts/uninstall.sh
```
## 应用打包
安装插件后,插件开发过程同
[
春松客服开发环境搭建
](
https://docs.chatopera.com/products/cskefu/osc/engineering.html
)
。
如果需要部署到系统测试、生产环境等,首先打包为 WAR 应用,方式如下:
```
cd contact-center
./admin/package.sh
```
春松客服的发布形式为 Docker 镜像,如果在更改源码后,也可以使用春松客服的 Docker 镜像构建脚本发布,参考
[
构建脚本
](
https://github.com/chatopera/cskefu/blob/osc/contact-center/admin/build.sh
)
。
## 机器人客服
-
[
源码和安装说明
](
./chatbot
)
-
[
使用介绍
](
https://docs.chatopera.com/products/cskefu/work-chatbot.html
)
-
[
使用介绍
](
https://docs.chatopera.com/products/cskefu/work-chatbot
/index
.html
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录