Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
micro_app
gk
Commits
22e55209
Commit
22e55209
authored
Oct 10, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Security): 新增操作日志,排查uid为null的问题
parent
ec793150
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
70 deletions
+70
-70
SecurityInterceptor.java
...dlbridge/jadp/common/interceptor/SecurityInterceptor.java
+2
-3
autoscore.js
src/main/webapp/static/js/autoscore.js
+68
-67
No files found.
src/main/java/com/dlbridge/jadp/common/interceptor/SecurityInterceptor.java
View file @
22e55209
...
@@ -48,8 +48,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
...
@@ -48,8 +48,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
Object
handler
)
throws
Exception
{
Object
handler
)
throws
Exception
{
Map
<
String
,
Object
>
queryParams
=
getQueryParams
(
request
);
Map
<
String
,
Object
>
queryParams
=
getQueryParams
(
request
);
// logger.info("请求URL:"+request.getRequestURI()+queryParams);
logger
.
info
(
"请求URL:"
+
request
.
getRequestURI
()+
queryParams
);
if
(
handler
instanceof
HandlerMethod
)
{
if
(
handler
instanceof
HandlerMethod
)
{
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
HandlerMethod
handlerMethod
=
(
HandlerMethod
)
handler
;
Method
method
=
handlerMethod
.
getMethod
();
Method
method
=
handlerMethod
.
getMethod
();
...
@@ -75,7 +74,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
...
@@ -75,7 +74,7 @@ public class SecurityInterceptor extends JService implements HandlerInterceptor
String
cId
=
request
.
getParameter
(
"cId"
);
String
cId
=
request
.
getParameter
(
"cId"
);
String
uId
=
request
.
getParameter
(
"uId"
);
String
uId
=
request
.
getParameter
(
"uId"
);
String
str
=
"cId="
+
cId
+
"×tamp="
+
timestamp
+
"&uId="
+
uId
;
String
str
=
"cId="
+
cId
+
"×tamp="
+
timestamp
+
"&uId="
+
uId
;
//
log.info("请求路径:" + str + ",sign:" + DigestUtils.md5DigestAsHex(str.getBytes()) + ",psign:" + sign);
log
.
info
(
"请求路径:"
+
str
+
",sign:"
+
DigestUtils
.
md5DigestAsHex
(
str
.
getBytes
())
+
",psign:"
+
sign
);
if
(
NumberUtils
.
toInt
(
uId
,
-
1
)
==
-
1
||
NumberUtils
.
toInt
(
uId
,
-
1
)
==
0
)
{
if
(
NumberUtils
.
toInt
(
uId
,
-
1
)
==
-
1
||
NumberUtils
.
toInt
(
uId
,
-
1
)
==
0
)
{
log
.
info
(
"无用户信息登录"
);
log
.
info
(
"无用户信息登录"
);
response
.
sendRedirect
(
"http://timer.geexek.com"
);
response
.
sendRedirect
(
"http://timer.geexek.com"
);
...
...
src/main/webapp/static/js/autoscore.js
View file @
22e55209
...
@@ -6,52 +6,52 @@ $(document).ready(function () {
...
@@ -6,52 +6,52 @@ $(document).ready(function () {
//初始化已经配置好的GPS计时点配置列表
//初始化已经配置好的GPS计时点配置列表
$
(
'body'
).
on
(
'change'
,
'table select'
,
function
()
{
$
(
'body'
).
on
(
'change'
,
'table select'
,
function
()
{
var
option
=
$
(
this
).
find
(
'option:selected'
)
var
option
=
$
(
this
).
find
(
'option:selected'
)
var
lat
=
Number
(
option
.
attr
(
'data-lat'
)).
toFixed
(
6
);
var
lat
=
Number
(
option
.
attr
(
'data-lat'
)).
toFixed
(
6
);
var
lng
=
Number
(
option
.
attr
(
'data-lng'
)).
toFixed
(
6
);
var
lng
=
Number
(
option
.
attr
(
'data-lng'
)).
toFixed
(
6
);
$
(
this
).
parents
(
'td'
).
next
().
text
(
lat
+
","
+
lng
);
$
(
this
).
parents
(
'td'
).
next
().
text
(
lat
+
","
+
lng
);
});
});
$
(
'body'
).
on
(
'click'
,
'.road-name'
,
function
()
{
$
(
'body'
).
on
(
'click'
,
'.road-name'
,
function
()
{
$
(
'.road-name'
).
removeClass
(
'active'
);
$
(
'.road-name'
).
removeClass
(
'active'
);
$
(
this
).
addClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
var
roadId
=
$
(
this
).
attr
(
'road-id'
);
var
roadId
=
$
(
this
).
attr
(
'road-id'
);
//获取计时系统的计时点列表
//获取计时系统的计时点列表
getTimeCp
(
roadId
);
getTimeCp
(
roadId
);
});
});
$
(
'.save-btn'
).
click
(
function
()
{
$
(
'.save-btn'
).
click
(
function
()
{
var
params
=
[];
var
params
=
[];
var
roadId
=
$
(
'.road-name.active'
).
attr
(
'road-id'
);
var
roadId
=
$
(
'.road-name.active'
).
attr
(
'road-id'
);
$
.
each
(
$
(
'tbody tr'
),
function
(
i
,
e
)
{
$
.
each
(
$
(
'tbody tr'
),
function
(
i
,
e
)
{
var
param
=
{};
var
param
=
{};
var
id
=
$
(
e
).
attr
(
'data-cpmap-id'
);
var
id
=
$
(
e
).
attr
(
'data-cpmap-id'
);
var
checkpointId
=
$
(
e
).
find
(
'td:eq(0)'
).
attr
(
'data-cp-id'
);
var
checkpointId
=
$
(
e
).
find
(
'td:eq(0)'
).
attr
(
'data-cp-id'
);
var
checkpointDistance
=
$
(
e
).
find
(
'td:eq(0)'
).
attr
(
'data-cp-distance'
);
var
checkpointDistance
=
$
(
e
).
find
(
'td:eq(0)'
).
attr
(
'data-cp-distance'
);
var
cmptId
=
getCmptId
();
var
cmptId
=
getCmptId
();
var
checkpointName
=
$
(
e
).
find
(
'td:eq(0)'
).
text
();
var
checkpointName
=
$
(
e
).
find
(
'td:eq(0)'
).
text
();
var
checkpointGpsName
=
$
(
e
).
find
(
'select'
).
val
()
var
checkpointGpsName
=
$
(
e
).
find
(
'select'
).
val
()
var
checkpointLatitude
=
$
(
e
).
find
(
'td:eq(2)'
).
text
().
split
(
','
)[
0
];
var
checkpointLatitude
=
$
(
e
).
find
(
'td:eq(2)'
).
text
().
split
(
','
)[
0
];
var
checkpointLongitude
=
$
(
e
).
find
(
'td:eq(2)'
).
text
().
split
(
','
)[
1
];
var
checkpointLongitude
=
$
(
e
).
find
(
'td:eq(2)'
).
text
().
split
(
','
)[
1
];
if
(
!
checkpointGpsName
)
{
if
(
!
checkpointGpsName
)
{
return
true
;
return
true
;
}
}
param
.
id
=
id
;
param
.
id
=
id
;
param
.
roadId
=
roadId
;
param
.
roadId
=
roadId
;
param
.
checkpointId
=
checkpointId
;
param
.
checkpointId
=
checkpointId
;
param
.
checkpointDistance
=
checkpointDistance
;
param
.
checkpointDistance
=
checkpointDistance
;
param
.
cmptId
=
cmptId
;
param
.
cmptId
=
cmptId
;
param
.
checkpointName
=
checkpointName
;
param
.
checkpointName
=
checkpointName
;
param
.
checkpointGpsName
=
checkpointGpsName
;
param
.
checkpointGpsName
=
checkpointGpsName
;
param
.
checkpointLatitude
=
checkpointLatitude
;
param
.
checkpointLatitude
=
checkpointLatitude
;
param
.
checkpointLongitude
=
checkpointLongitude
;
param
.
checkpointLongitude
=
checkpointLongitude
;
console
.
log
(
param
)
console
.
log
(
param
)
params
.
push
(
param
)
params
.
push
(
param
)
});
});
saveCpMap
(
params
)
saveCpMap
(
params
)
});
});
$
(
'.load'
).
click
(
function
()
{
$
(
'.load'
).
click
(
function
()
{
...
@@ -62,26 +62,26 @@ $(document).ready(function () {
...
@@ -62,26 +62,26 @@ $(document).ready(function () {
//路线标注下来点击事情,获取下拉值,并更新选中的值
//路线标注下来点击事情,获取下拉值,并更新选中的值
$
(
".selectgpscheckpoint"
).
change
(
function
()
{
$
(
".selectgpscheckpoint"
).
change
(
function
()
{
});
});
/**
/**
* 初始化已经配置好的GPS计时点配置列表
* 初始化已经配置好的GPS计时点配置列表
* @param roadId
* @param roadId
*/
*/
function
getCpGpsList
(
roadId
)
{
function
getCpGpsList
(
roadId
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/roadGpsCheckpoint/getRoadsGpsCheckpoint/'
+
getCId
()
+
"/"
+
roadId
,
url
:
'/gk/roadGpsCheckpoint/getRoadsGpsCheckpoint/'
+
getCId
()
+
"/"
+
roadId
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
status
)
{
if
(
data
.
status
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
var
tr
=
$
(
'td[data-cp-id='
+
e
.
checkpointId
+
']'
).
parent
();
var
tr
=
$
(
'td[data-cp-id='
+
e
.
checkpointId
+
']'
).
parent
();
tr
.
find
(
'select'
).
val
(
e
.
checkpointGpsName
);
tr
.
find
(
'select'
).
val
(
e
.
checkpointGpsName
);
tr
.
find
(
'select'
).
trigger
(
'change'
);
tr
.
find
(
'select'
).
trigger
(
'change'
);
tr
.
attr
(
'data-cpmap-id'
,
e
.
id
);
tr
.
attr
(
'data-cpmap-id'
,
e
.
id
);
});
});
}
}
}
}
...
@@ -95,14 +95,15 @@ function getCpGpsList(roadId) {
...
@@ -95,14 +95,15 @@ function getCpGpsList(roadId) {
*/
*/
function
getTimeCp
(
roadId
)
{
function
getTimeCp
(
roadId
)
{
$
(
'tbody'
).
empty
()
$
(
'tbody'
).
empty
()
if
(
!
roadId
)
return
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/roadGpsCheckpoint/getTimeCheckpointByRoadId/'
+
getCId
()
+
"/"
+
roadId
,
url
:
'/gk/roadGpsCheckpoint/getTimeCheckpointByRoadId/'
+
getCId
()
+
"/"
+
roadId
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
status
)
{
if
(
data
.
status
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
$
(
'tbody'
).
append
(
'
\
n'
+
$
(
'tbody'
).
append
(
'
\
n'
+
' <tr>
\
n'
+
' <tr>
\
n'
+
' <td data-cp-id="'
+
e
.
checkpointId
+
'" data-cp-distance="'
+
e
.
checkpointDistance
+
'">'
+
e
.
checkpointName
+
'</td>
\
n'
+
' <td data-cp-id="'
+
e
.
checkpointId
+
'" data-cp-distance="'
+
e
.
checkpointDistance
+
'">'
+
e
.
checkpointName
+
'</td>
\
n'
+
' <td>
\
n'
+
' <td>
\
n'
+
' <div class="select-group">
\
n'
+
' <div class="select-group">
\
n'
+
' <select class="select gpscheckpoint">
\
n'
+
' <select class="select gpscheckpoint">
\
n'
+
...
@@ -110,7 +111,7 @@ function getTimeCp(roadId) {
...
@@ -110,7 +111,7 @@ function getTimeCp(roadId) {
' <span class="down-arrow"></span>
\
n'
+
' <span class="down-arrow"></span>
\
n'
+
' </div>
\
n'
+
' </div>
\
n'
+
' </td>
\
n'
+
' </td>
\
n'
+
' <td>'
+
Number
(
e
.
checkpointLatitude
).
toFixed
(
6
)
+
','
+
Number
(
e
.
checkpointLongitude
).
toFixed
(
6
)
+
'</td>
\
n'
+
' <td>'
+
Number
(
e
.
checkpointLatitude
).
toFixed
(
6
)
+
','
+
Number
(
e
.
checkpointLongitude
).
toFixed
(
6
)
+
'</td>
\
n'
+
' </tr>'
);
' </tr>'
);
})
})
getGpsCp
(
roadId
);
getGpsCp
(
roadId
);
...
@@ -127,26 +128,26 @@ function getTimeCp(roadId) {
...
@@ -127,26 +128,26 @@ function getTimeCp(roadId) {
*/
*/
function
getGpsCp
(
roadId
)
{
function
getGpsCp
(
roadId
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/roadGpsCheckpoint/getGpsCheckPointByRoadId/'
+
getCId
()
+
"/"
+
roadId
,
url
:
'/gk/roadGpsCheckpoint/getGpsCheckPointByRoadId/'
+
getCId
()
+
"/"
+
roadId
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
status
)
{
if
(
data
.
status
)
{
$
(
'.load'
).
hide
();
$
(
'.load'
).
hide
();
$
(
'.noroute'
).
hide
();
$
(
'.noroute'
).
hide
();
var
optionstring
=
"<option value='' data-lat='' data-lng='' >- -</option>"
;
var
optionstring
=
"<option value='' data-lat='' data-lng='' >- -</option>"
;
//将之前的下拉框的值清空
//将之前的下拉框的值清空
$
(
".gpscheckpoint"
).
empty
();
$
(
".gpscheckpoint"
).
empty
();
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
//获取项目路线上的打卡点并初始化到下拉框
//获取项目路线上的打卡点并初始化到下拉框
optionstring
+=
'<option data-lat="'
+
e
.
checkpointLatitude
+
'" data-lng="'
+
e
.
checkpointLongitude
+
'" value="'
+
e
.
checkpointGpsName
+
'">'
+
e
.
checkpointGpsName
+
'</option>'
;
optionstring
+=
'<option data-lat="'
+
e
.
checkpointLatitude
+
'" data-lng="'
+
e
.
checkpointLongitude
+
'" value="'
+
e
.
checkpointGpsName
+
'">'
+
e
.
checkpointGpsName
+
'</option>'
;
});
});
$
.
each
(
$
(
".gpscheckpoint"
),
function
(
i
,
e
)
{
$
.
each
(
$
(
".gpscheckpoint"
),
function
(
i
,
e
)
{
$
(
e
).
append
(
optionstring
);
$
(
e
).
append
(
optionstring
);
});
});
getCpGpsList
(
roadId
);
getCpGpsList
(
roadId
);
}
else
{
}
else
{
//$('.road-name[road-id="'+roadId+'"]').append($('.noroute'));
//$('.road-name[road-id="'+roadId+'"]').append($('.noroute'));
$
(
'.noroute'
).
show
();
$
(
'.noroute'
).
show
();
$
(
'.load'
).
attr
(
'road-id'
,
roadId
)
$
(
'.load'
).
attr
(
'road-id'
,
roadId
)
$
(
'.load'
).
show
();
$
(
'.load'
).
show
();
$
(
".gpscheckpoint"
).
append
(
"<option value='' data-lat='' data-lng=''>- -</option>"
);
$
(
".gpscheckpoint"
).
append
(
"<option value='' data-lat='' data-lng=''>- -</option>"
);
}
}
...
@@ -159,19 +160,19 @@ function getGpsCp(roadId) {
...
@@ -159,19 +160,19 @@ function getGpsCp(roadId) {
* 保存对应关系
* 保存对应关系
*
*
*/
*/
function
saveCpMap
(
param
){
function
saveCpMap
(
param
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/roadGpsCheckpoint/save'
,
url
:
'/gk/roadGpsCheckpoint/save'
,
type
:
'post'
,
type
:
'post'
,
contentType
:
'application/json'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
param
),
data
:
JSON
.
stringify
(
param
),
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
status
)
{
if
(
data
.
status
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
$
.
each
(
data
.
content
,
function
(
i
,
e
)
{
$
(
'td[data-cp-id="'
+
e
.
checkpointId
+
'"]'
).
parent
().
attr
(
'data-cpmap-id'
,
e
.
id
)
$
(
'td[data-cp-id="'
+
e
.
checkpointId
+
'"]'
).
parent
().
attr
(
'data-cpmap-id'
,
e
.
id
)
})
})
layer
.
msg
(
'保存成功!'
)
layer
.
msg
(
'保存成功!'
)
}
else
{
}
else
{
layer
.
msg
(
'操作失败!'
)
layer
.
msg
(
'操作失败!'
)
}
}
}
}
...
...
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