Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
9aac2495
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
333
Star
10
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9aac2495
编写于
3月 15, 2024
作者:
O
o2sword
提交者:
NoSubject
3月 18, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复应用市场应用部署配置文件未按最新版本更新的问题
(cherry picked from commit
505b2575
)
上级
f1838e30
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
8 deletion
+15
-8
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/market/BaseAction.java
...in/java/com/x/program/center/jaxrs/market/BaseAction.java
+15
-8
未找到文件。
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/market/BaseAction.java
浏览文件 @
9aac2495
...
...
@@ -15,6 +15,8 @@ import java.util.List;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
import
com.google.gson.JsonObject
;
import
com.x.base.core.project.tools.*
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.lang3.BooleanUtils
;
...
...
@@ -47,12 +49,6 @@ import com.x.base.core.project.jaxrs.StandardJaxrsAction;
import
com.x.base.core.project.jaxrs.WoId
;
import
com.x.base.core.project.logger.Logger
;
import
com.x.base.core.project.logger.LoggerFactory
;
import
com.x.base.core.project.tools.Crypto
;
import
com.x.base.core.project.tools.DefaultCharset
;
import
com.x.base.core.project.tools.FileTools
;
import
com.x.base.core.project.tools.ListTools
;
import
com.x.base.core.project.tools.StringTools
;
import
com.x.base.core.project.tools.ZipTools
;
import
com.x.cms.core.entity.element.wrap.WrapCms
;
import
com.x.portal.core.entity.wrap.WrapPortal
;
import
com.x.processplatform.core.entity.element.wrap.WrapProcessPlatform
;
...
...
@@ -140,7 +136,7 @@ abstract class BaseAction extends StandardJaxrsAction {
}
}
try
{
FileUtils
.
clean
Directory
(
tempFile
);
FileUtils
.
delete
Directory
(
tempFile
);
}
catch
(
Exception
e
)
{
if
(
logger
.
isDebugEnabled
())
{
logger
.
debug
(
e
.
getMessage
());
...
...
@@ -217,7 +213,7 @@ abstract class BaseAction extends StandardJaxrsAction {
continue
;
}
JsonElement
fileJson
=
map
.
containsKey
(
customConfig
.
getConfigName
())
?
map
.
get
(
customConfig
.
getConfigName
())
:
Config
.
customConfig
(
StringUtils
.
substringBefore
(
customConfig
.
getConfigName
(),
nameEnd
));
getCustomConfig
(
customConfig
.
getConfigName
(
));
if
(
fileJson
!=
null
&&
customConfig
.
getData
()!=
null
){
JsonElement
newFileJson
;
if
(
CONFIG_OPERATE_REPLACE
.
equalsIgnoreCase
(
customConfig
.
getOperate
())){
...
...
@@ -256,6 +252,17 @@ abstract class BaseAction extends StandardJaxrsAction {
}
}
private
JsonElement
getCustomConfig
(
String
configName
)
throws
Exception
{
JsonElement
config
=
BaseTools
.
readConfigObject
(
Config
.
DIR_CONFIG
+
"/"
+
configName
,
JsonObject
.
class
);
JsonElement
configSample
=
BaseTools
.
readConfigObject
(
Config
.
DIR_CONFIGSAMPLE
+
"/"
+
configName
,
JsonObject
.
class
);
if
(
config
==
null
){
return
configSample
;
}
else
if
(
configSample
!=
null
){
return
XGsonBuilder
.
cover
(
config
,
configSample
,
""
);
}
return
config
;
}
protected
ActionInstallOffline
.
InstallWo
installModule
(
WrapModule
module
)
throws
Exception
{
ActionInstallOffline
.
InstallWo
wo
=
new
ActionInstallOffline
.
InstallWo
();
String
[]
paths
=
{
"input"
,
"cover"
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录