Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foc_manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
foc_manage
Commits
3abbdef3
Commit
3abbdef3
authored
Sep 25, 2024
by
罗胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-25
硬编码修改
parent
6f0c05b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
userList-jq.jsp
WebContent/WEB-INF/views/modules/sys/userList-jq.jsp
+1
-1
GConstants.java
src/com/ejweb/core/conf/GConstants.java
+1
-1
SecurityPropertyPlaceholderConfigurer.java
src/com/ejweb/core/conf/SecurityPropertyPlaceholderConfigurer.java
+26
-26
No files found.
WebContent/WEB-INF/views/modules/sys/userList-jq.jsp
View file @
3abbdef3
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<div
id=
"importBox"
class=
"hide"
>
<div
id=
"importBox"
class=
"hide"
>
<form
id=
"importForm"
action=
"${ctx}/sys/user/import"
method=
"post"
enctype=
"multipart/form-data"
<form
id=
"importForm"
action=
"${ctx}/sys/user/import"
method=
"post"
enctype=
"multipart/form-data"
class=
"form-search"
style=
"padding-left:20px;text-align:center;"
onsubmit=
"loading('正在导入,请稍等...');"
><br/>
class=
"form-search"
style=
"padding-left:20px;text-align:center;"
onsubmit=
"loading('正在导入,请稍等...');"
><br/>
<input
id=
"uploadFile"
name=
"file"
type=
"file"
style=
"width:330px"
accept=
".xls,.xlsx"
/><br/><br/>
<
%
--
<
input
id=
"uploadFile"
name=
"file"
type=
"file"
style=
"width:330px"
accept=
".xls,.xlsx"
/><br/><br/>
--%>
<input
id=
"btnImportSubmit"
class=
"btn btn-primary"
type=
"submit"
value=
" 导 入 "
/>
<input
id=
"btnImportSubmit"
class=
"btn btn-primary"
type=
"submit"
value=
" 导 入 "
/>
<a
href=
"${ctx}/sys/user/import/template"
>
下载模板
</a>
<a
href=
"${ctx}/sys/user/import/template"
>
下载模板
</a>
</form>
</form>
...
...
src/com/ejweb/core/conf/GConstants.java
View file @
3abbdef3
...
@@ -189,7 +189,7 @@ public class GConstants {
...
@@ -189,7 +189,7 @@ public class GConstants {
/**
/**
* DES配置加密秘钥
* DES配置加密秘钥
*/
*/
private
static
final
String
CONF_DESC_KEY
=
"782790337169117184"
;
//
private static final String CONF_DESC_KEY = "782790337169117184";
/**
/**
* foc api接口签名私钥,访问foc_api必须
* foc api接口签名私钥,访问foc_api必须
...
...
src/com/ejweb/core/conf/SecurityPropertyPlaceholderConfigurer.java
View file @
3abbdef3
...
@@ -27,37 +27,37 @@ import com.ejweb.core.security.DES3Utils;
...
@@ -27,37 +27,37 @@ import com.ejweb.core.security.DES3Utils;
*/
*/
public
class
SecurityPropertyPlaceholderConfigurer
extends
PropertyPlaceholderConfigurer
{
public
class
SecurityPropertyPlaceholderConfigurer
extends
PropertyPlaceholderConfigurer
{
private
static
final
String
CONF_DESC_KEY
=
"782790337169117184"
;
//
private static final String CONF_DESC_KEY = "782790337169117184";
private
Map
<
String
,
Boolean
>
keys
=
new
HashMap
<
String
,
Boolean
>();
private
Map
<
String
,
Boolean
>
keys
=
new
HashMap
<
String
,
Boolean
>();
@Override
@Override
protected
void
processProperties
(
ConfigurableListableBeanFactory
beanFactory
,
Properties
props
)
protected
void
processProperties
(
ConfigurableListableBeanFactory
beanFactory
,
Properties
props
)
throws
BeansException
{
throws
BeansException
{
try
{
//
try {
// 非开发环境需要对配置文件加密
//
// 非开发环境需要对配置文件加密
if
(
getBoolean
(
props
,
"is.devmode"
,
false
)
==
false
)
{
//
if (getBoolean(props, "is.devmode", false) == false) {
Enumeration
<?>
enu
=
props
.
propertyNames
();
//
Enumeration<?> enu = props.propertyNames();
while
(
enu
.
hasMoreElements
())
{
//
while (enu.hasMoreElements()) {
try
{
//
try {
String
key
=
(
String
)
enu
.
nextElement
();
//
String key = (String) enu.nextElement();
if
(
"is.devmode"
.
equals
(
key
)
==
false
&&
keys
.
get
(
key
)
==
null
)
{
// 还未处理
//
if ("is.devmode".equals(key) == false && keys.get(key) == null) {// 还未处理
keys
.
put
(
key
,
true
);
//
keys.put(key, true);
//
String
val
=
(
String
)
props
.
get
(
key
);
//
String val = (String) props.get(key);
String
decrypted
=
DES3Utils
.
decrypt
(
val
,
CONF_DESC_KEY
);
//
String decrypted = DES3Utils.decrypt(val, CONF_DESC_KEY);
if
(
decrypted
!=
null
)
{
//
if (decrypted != null) {
//
props
.
put
(
key
,
decrypted
);
//
props.put(key, decrypted);
}
//
}
}
//
}
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
// TODO: handle exception
//
// TODO: handle exception
}
//
}
}
//
}
}
//
}
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
// TODO: handle exception
//
// TODO: handle exception
}
//
}
super
.
processProperties
(
beanFactory
,
props
);
super
.
processProperties
(
beanFactory
,
props
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment