Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
syzy_se
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
管理员
syzy_se
Commits
fff8f83f
Commit
fff8f83f
authored
May 21, 2024
by
yanxiaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
顺义中医
parent
82f3ae43
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
326 additions
and
3 deletions
+326
-3
pom.xml
pom.xml
+27
-1
IndexController.java
src/main/java/com/spk/zyse/admin/IndexController.java
+75
-0
application.properties
src/main/resources/application.properties
+1
-1
error.html
src/main/resources/static/error.html
+111
-0
repeat.html
src/main/resources/static/repeat.html
+111
-0
login.html
src/main/resources/templates/login.html
+1
-1
No files found.
pom.xml
View file @
fff8f83f
...
@@ -37,7 +37,33 @@
...
@@ -37,7 +37,33 @@
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
</dependency>
<!-- axis -->
<dependency>
<groupId>
org.apache.axis
</groupId>
<artifactId>
axis
</artifactId>
<version>
1.4
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/wsdl4j/wsdl4j -->
<dependency>
<groupId>
wsdl4j
</groupId>
<artifactId>
wsdl4j
</artifactId>
<version>
1.6.2
</version>
</dependency>
<dependency>
<groupId>
javax.xml
</groupId>
<artifactId>
jaxrpc-api
</artifactId>
<version>
1.1
</version>
</dependency>
<dependency>
<groupId>
commons-discovery
</groupId>
<artifactId>
commons-discovery
</artifactId>
<version>
0.2
</version>
</dependency>
<dependency>
<groupId>
commons-logging
</groupId>
<artifactId>
commons-logging
</artifactId>
<version>
1.2
</version>
</dependency>
<!-- 重新覆盖mysql的版本,原因:虽然admin-core更新过mysql版本,但由于parent是admin-cloud,导致更新的版本失效 -->
<!-- 重新覆盖mysql的版本,原因:虽然admin-core更新过mysql版本,但由于parent是admin-cloud,导致更新的版本失效 -->
<dependency>
<dependency>
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
...
...
src/main/java/com/spk/zyse/admin/IndexController.java
View file @
fff8f83f
package
com
.
spk
.
zyse
.
admin
;
package
com
.
spk
.
zyse
.
admin
;
import
java.io.UnsupportedEncodingException
;
import
java.rmi.RemoteException
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.xml.namespace.QName
;
import
javax.xml.rpc.ParameterMode
;
import
javax.xml.rpc.ServiceException
;
import
org.apache.axis.client.Call
;
import
org.apache.axis.client.Service
;
import
org.apache.axis.encoding.XMLType
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
...
@@ -203,4 +211,71 @@ private static final String MODEL = "/zy";
...
@@ -203,4 +211,71 @@ private static final String MODEL = "/zy";
}
}
return
new
ModelAndView
(
"/loginV3.html"
);
return
new
ModelAndView
(
"/loginV3.html"
);
}
}
//单点登录测试-20240517
@RequestMapping
(
MODEL
+
"/singLogin.json"
)
@ResponseBody
public
JsonResult
singLogin
(
String
sessionId
)
{
try
{
String
result
=
""
;
String
endpoint
=
"http://172.16.0.118:57772/soap/JHIPLIB.SOAP.BS.HL7V3Service.cls?CfgItem=JH0001新增患者信息服务"
;
String
[]
subStrs
=
endpoint
.
split
(
"="
);
String
url
=
""
;
String
subStr
=
""
;
url
=
subStrs
[
0
];
if
(
subStrs
.
length
>
1
){
subStr
=
getURLEncoderString
(
subStrs
[
1
]);
}
endpoint
=
url
+
"="
+
subStr
;
Service
service
=
new
Service
();
Call
call
=
null
;
try
{
//call = service.createCall();
call
=
(
Call
)
service
.
createCall
();
}
catch
(
ServiceException
e
)
{
}
call
.
setTargetEndpointAddress
(
endpoint
);
call
.
setOperationName
(
new
QName
(
"http://goodwillcis.com"
,
"HIPMessageServer"
));
call
.
addParameter
(
"Message"
,
XMLType
.
XSD_STRING
,
ParameterMode
.
IN
);
//接口的参数
call
.
setReturnType
(
XMLType
.
XSD_STRING
);
//设置返回类型
try
{
result
=
(
String
)
call
.
invoke
(
new
Object
[]{
"<a><b>aaa</b><c>bbb</c></a>"
});
System
.
err
.
println
(
result
);
}
catch
(
RemoteException
e
)
{
e
.
printStackTrace
();
result
=
e
.
getMessage
();
System
.
err
.
println
(
result
);
}
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
e
.
toString
());
}
return
JsonResult
.
success
();
}
public
static
String
getURLEncoderString
(
String
str
)
{
String
result
=
""
;
if
(
null
==
str
)
{
return
""
;
}
try
{
result
=
java
.
net
.
URLEncoder
.
encode
(
str
,
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
}
return
result
;
}
}
}
src/main/resources/application.properties
View file @
fff8f83f
...
@@ -62,7 +62,7 @@ server.session.cookie.http-only=false
...
@@ -62,7 +62,7 @@ server.session.cookie.http-only=false
#是否开启session超时检测
#是否开启session超时检测
session.checkLoginEnable
=
true
session.checkLoginEnable
=
true
#session拦截器会忽略这些地址
#session拦截器会忽略这些地址
session.ExcludePathPatterns
=
/,/login.do,/logout.do,/getRandom.do,/zy/loginAjax.do,/reLogin.do,/remind,/checkUserOnline,/loginRegister.do,/loginPassword.do,/loginPasswords.do,/register.json
session.ExcludePathPatterns
=
/,/login.do,/logout.do,/getRandom.do,/zy/loginAjax.do,/reLogin.do,/remind,/checkUserOnline,/loginRegister.do,/loginPassword.do,/loginPasswords.do,/register.json
,/zy/singLogin.json
#session拦截器只检测这些请求后缀
#session拦截器只检测这些请求后缀
session.PathPatterns
=
.json,.do,.html
session.PathPatterns
=
.json,.do,.html
...
...
src/main/resources/static/error.html
0 → 100644
View file @
fff8f83f
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
404
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
http-equiv=
"Access-Control-Allow-Origin"
content=
"*"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<link
rel=
"stylesheet"
href=
"../lib/layui-v2.6.3/css/layui.css"
media=
"all"
>
<style>
.error
.clip
.shadow
{
height
:
180px
;}
.error
.clip
:nth-of-type
(
2
)
.shadow
{
width
:
130px
;}
.error
.clip
:nth-of-type
(
1
)
.shadow
,
.error
.clip
:nth-of-type
(
3
)
.shadow
{
width
:
250px
;}
.error
.digit
{
width
:
150px
;
height
:
150px
;
line-height
:
150px
;
font-size
:
120px
;
font-weight
:
bold
;}
.error
h2
{
font-size
:
32px
;}
.error
.msg
{
top
:
-190px
;
left
:
30%
;
width
:
80px
;
height
:
80px
;
line-height
:
80px
;
font-size
:
32px
;}
.error
span
.triangle
{
top
:
70%
;
right
:
0%
;
border-left
:
20px
solid
#535353
;
border-top
:
15px
solid
transparent
;
border-bottom
:
15px
solid
transparent
;}
.error
.container-error-404
{
top
:
50%
;
margin-top
:
250px
;
position
:
relative
;
height
:
250px
;
padding-top
:
40px
;}
.error
.container-error-404
.clip
{
display
:
inline-block
;
transform
:
skew
(
-45deg
);}
.error
.clip
.shadow
{
overflow
:
hidden
;}
.error
.clip
:nth-of-type
(
2
)
.shadow
{
overflow
:
hidden
;
position
:
relative
;
box-shadow
:
inset
20px
0px
20px
-15px
rgba
(
150
,
150
,
150
,
0.8
),
20px
0px
20px
-15px
rgba
(
150
,
150
,
150
,
0.8
);}
.error
.clip
:nth-of-type
(
3
)
.shadow
:after
,
.error
.clip
:nth-of-type
(
1
)
.shadow
:after
{
content
:
""
;
position
:
absolute
;
right
:
-8px
;
bottom
:
0px
;
z-index
:
9999
;
height
:
100%
;
width
:
10px
;
background
:
linear-gradient
(
90deg
,
transparent
,
rgba
(
173
,
173
,
173
,
0.8
),
transparent
);
border-radius
:
50%
;}
.error
.clip
:nth-of-type
(
3
)
.shadow
:after
{
left
:
-8px
;}
.error
.digit
{
position
:
relative
;
top
:
8%
;
color
:
white
;
background
:
#1E9FFF
;
border-radius
:
50%
;
display
:
inline-block
;
transform
:
skew
(
45deg
);}
.error
.clip
:nth-of-type
(
2
)
.digit
{
left
:
-10%
;}
.error
.clip
:nth-of-type
(
1
)
.digit
{
right
:
-20%
;}
.error
.clip
:nth-of-type
(
3
)
.digit
{
left
:
-20%
;}
.error
h2
{
font-size
:
24px
;
color
:
#A2A2A2
;
font-weight
:
bold
;
padding-bottom
:
20px
;}
.error
.tohome
{
font-size
:
16px
;
color
:
#07B3F9
;}
.error
.msg
{
position
:
relative
;
z-index
:
9999
;
display
:
block
;
background
:
#535353
;
color
:
#A2A2A2
;
border-radius
:
50%
;
font-style
:
italic
;}
.error
.triangle
{
position
:
absolute
;
z-index
:
999
;
transform
:
rotate
(
45deg
);
content
:
""
;
width
:
0
;
height
:
0
;}
@media
(
max-width
:
767px
)
{
.error
.clip
.shadow
{
height
:
100px
;}
.error
.clip
:nth-of-type
(
2
)
.shadow
{
width
:
80px
;}
.error
.clip
:nth-of-type
(
1
)
.shadow
,
.error
.clip
:nth-of-type
(
3
)
.shadow
{
width
:
100px
;}
.error
.digit
{
width
:
80px
;
height
:
80px
;
line-height
:
80px
;
font-size
:
52px
;}
.error
h2
{
font-size
:
18px
;}
.error
.msg
{
top
:
-110px
;
left
:
15%
;
width
:
40px
;
height
:
40px
;
line-height
:
40px
;
font-size
:
18px
;}
.error
span
.triangle
{
top
:
70%
;
right
:
-3%
;
border-left
:
10px
solid
#535353
;
border-top
:
8px
solid
transparent
;
border-bottom
:
8px
solid
transparent
;}
.error
.container-error-404
{
height
:
150px
;}
}
</style>
</head>
<body>
<div
class=
"error"
>
<div
class=
"container-floud"
>
<div
style=
"text-align: center"
>
<!-- <div class="container-error-404">
<div class="clip">
<div class="shadow">
<span class="digit thirdDigit"></span>
</div>
</div>
<div class="clip">
<div class="shadow">
<span class="digit secondDigit"></span>
</div>
</div>
<div class="clip">
<div class="shadow">
<span class="digit firstDigit"></span>
</div>
</div>
<div class="msg">OH!
<span class="triangle"></span>
</div>
</div> -->
<h2
class=
"h1"
>
服务器内部错误,请稍后重新登录!
</h2>
</div>
</div>
</div>
<script
src=
"../lib/layui-v2.6.3/layui.js"
charset=
"utf-8"
></script>
<script>
function
randomNum
()
{
return
Math
.
floor
(
Math
.
random
()
*
9
)
+
1
;
}
var
loop1
,
loop2
,
loop3
,
time
=
30
,
i
=
0
,
number
;
loop3
=
setInterval
(
function
()
{
if
(
i
>
40
)
{
clearInterval
(
loop3
);
document
.
querySelector
(
'.thirdDigit'
).
textContent
=
4
;
}
else
{
document
.
querySelector
(
'.thirdDigit'
).
textContent
=
randomNum
();
i
++
;
}
},
time
);
loop2
=
setInterval
(
function
()
{
if
(
i
>
80
)
{
clearInterval
(
loop2
);
document
.
querySelector
(
'.secondDigit'
).
textContent
=
0
;
}
else
{
document
.
querySelector
(
'.secondDigit'
).
textContent
=
randomNum
();
i
++
;
}
},
time
);
loop1
=
setInterval
(
function
()
{
if
(
i
>
100
)
{
clearInterval
(
loop1
);
document
.
querySelector
(
'.firstDigit'
).
textContent
=
4
;
}
else
{
document
.
querySelector
(
'.firstDigit'
).
textContent
=
randomNum
();
i
++
;
}
},
time
);
</script>
</body>
</html>
\ No newline at end of file
src/main/resources/static/repeat.html
0 → 100644
View file @
fff8f83f
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
404
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
http-equiv=
"Access-Control-Allow-Origin"
content=
"*"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<link
rel=
"stylesheet"
href=
"../lib/layui-v2.6.3/css/layui.css"
media=
"all"
>
<style>
.error
.clip
.shadow
{
height
:
180px
;}
.error
.clip
:nth-of-type
(
2
)
.shadow
{
width
:
130px
;}
.error
.clip
:nth-of-type
(
1
)
.shadow
,
.error
.clip
:nth-of-type
(
3
)
.shadow
{
width
:
250px
;}
.error
.digit
{
width
:
150px
;
height
:
150px
;
line-height
:
150px
;
font-size
:
120px
;
font-weight
:
bold
;}
.error
h2
{
font-size
:
32px
;}
.error
.msg
{
top
:
-190px
;
left
:
30%
;
width
:
80px
;
height
:
80px
;
line-height
:
80px
;
font-size
:
32px
;}
.error
span
.triangle
{
top
:
70%
;
right
:
0%
;
border-left
:
20px
solid
#535353
;
border-top
:
15px
solid
transparent
;
border-bottom
:
15px
solid
transparent
;}
.error
.container-error-404
{
top
:
50%
;
margin-top
:
250px
;
position
:
relative
;
height
:
250px
;
padding-top
:
40px
;}
.error
.container-error-404
.clip
{
display
:
inline-block
;
transform
:
skew
(
-45deg
);}
.error
.clip
.shadow
{
overflow
:
hidden
;}
.error
.clip
:nth-of-type
(
2
)
.shadow
{
overflow
:
hidden
;
position
:
relative
;
box-shadow
:
inset
20px
0px
20px
-15px
rgba
(
150
,
150
,
150
,
0.8
),
20px
0px
20px
-15px
rgba
(
150
,
150
,
150
,
0.8
);}
.error
.clip
:nth-of-type
(
3
)
.shadow
:after
,
.error
.clip
:nth-of-type
(
1
)
.shadow
:after
{
content
:
""
;
position
:
absolute
;
right
:
-8px
;
bottom
:
0px
;
z-index
:
9999
;
height
:
100%
;
width
:
10px
;
background
:
linear-gradient
(
90deg
,
transparent
,
rgba
(
173
,
173
,
173
,
0.8
),
transparent
);
border-radius
:
50%
;}
.error
.clip
:nth-of-type
(
3
)
.shadow
:after
{
left
:
-8px
;}
.error
.digit
{
position
:
relative
;
top
:
8%
;
color
:
white
;
background
:
#1E9FFF
;
border-radius
:
50%
;
display
:
inline-block
;
transform
:
skew
(
45deg
);}
.error
.clip
:nth-of-type
(
2
)
.digit
{
left
:
-10%
;}
.error
.clip
:nth-of-type
(
1
)
.digit
{
right
:
-20%
;}
.error
.clip
:nth-of-type
(
3
)
.digit
{
left
:
-20%
;}
.error
h2
{
font-size
:
24px
;
color
:
#A2A2A2
;
font-weight
:
bold
;
padding-bottom
:
20px
;}
.error
.tohome
{
font-size
:
16px
;
color
:
#07B3F9
;}
.error
.msg
{
position
:
relative
;
z-index
:
9999
;
display
:
block
;
background
:
#535353
;
color
:
#A2A2A2
;
border-radius
:
50%
;
font-style
:
italic
;}
.error
.triangle
{
position
:
absolute
;
z-index
:
999
;
transform
:
rotate
(
45deg
);
content
:
""
;
width
:
0
;
height
:
0
;}
@media
(
max-width
:
767px
)
{
.error
.clip
.shadow
{
height
:
100px
;}
.error
.clip
:nth-of-type
(
2
)
.shadow
{
width
:
80px
;}
.error
.clip
:nth-of-type
(
1
)
.shadow
,
.error
.clip
:nth-of-type
(
3
)
.shadow
{
width
:
100px
;}
.error
.digit
{
width
:
80px
;
height
:
80px
;
line-height
:
80px
;
font-size
:
52px
;}
.error
h2
{
font-size
:
18px
;}
.error
.msg
{
top
:
-110px
;
left
:
15%
;
width
:
40px
;
height
:
40px
;
line-height
:
40px
;
font-size
:
18px
;}
.error
span
.triangle
{
top
:
70%
;
right
:
-3%
;
border-left
:
10px
solid
#535353
;
border-top
:
8px
solid
transparent
;
border-bottom
:
8px
solid
transparent
;}
.error
.container-error-404
{
height
:
150px
;}
}
</style>
</head>
<body>
<div
class=
"error"
>
<div
class=
"container-floud"
>
<div
style=
"text-align: center"
>
<!-- <div class="container-error-404">
<div class="clip">
<div class="shadow">
<span class="digit thirdDigit"></span>
</div>
</div>
<div class="clip">
<div class="shadow">
<span class="digit secondDigit"></span>
</div>
</div>
<div class="clip">
<div class="shadow">
<span class="digit firstDigit"></span>
</div>
</div>
<div class="msg">OH!
<span class="triangle"></span>
</div>
</div> -->
<h2
class=
"h1"
>
该用户已经在别处登录,您无法重复登录!
</h2>
</div>
</div>
</div>
<script
src=
"../lib/layui-v2.6.3/layui.js"
charset=
"utf-8"
></script>
<script>
function
randomNum
()
{
return
Math
.
floor
(
Math
.
random
()
*
9
)
+
1
;
}
var
loop1
,
loop2
,
loop3
,
time
=
30
,
i
=
0
,
number
;
loop3
=
setInterval
(
function
()
{
if
(
i
>
40
)
{
clearInterval
(
loop3
);
document
.
querySelector
(
'.thirdDigit'
).
textContent
=
4
;
}
else
{
document
.
querySelector
(
'.thirdDigit'
).
textContent
=
randomNum
();
i
++
;
}
},
time
);
loop2
=
setInterval
(
function
()
{
if
(
i
>
80
)
{
clearInterval
(
loop2
);
document
.
querySelector
(
'.secondDigit'
).
textContent
=
0
;
}
else
{
document
.
querySelector
(
'.secondDigit'
).
textContent
=
randomNum
();
i
++
;
}
},
time
);
loop1
=
setInterval
(
function
()
{
if
(
i
>
100
)
{
clearInterval
(
loop1
);
document
.
querySelector
(
'.firstDigit'
).
textContent
=
4
;
}
else
{
document
.
querySelector
(
'.firstDigit'
).
textContent
=
randomNum
();
i
++
;
}
},
time
);
</script>
</body>
</html>
\ No newline at end of file
src/main/resources/templates/login.html
View file @
fff8f83f
...
@@ -245,7 +245,7 @@
...
@@ -245,7 +245,7 @@
//回调ca GetCertEntity方法,并回调getuser方法
//回调ca GetCertEntity方法,并回调getuser方法
GetCertEntity
(
strServerCert
,
getUser
);
GetCertEntity
(
strServerCert
,
getUser
);
}
}
function
severLogin
(
forceLogin
){
function
severLogin
(
forceLogin
){
alert
(
forceLogin
);
if
(
check
()){
if
(
check
()){
var
loginname
=
$
(
"#loginname"
).
val
();
var
loginname
=
$
(
"#loginname"
).
val
();
...
...
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