Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
kmr-h5-java
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f6312d7a
authored
2017-12-05 10:21:26 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
62c2201e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
kmr_dp_HDP/src/main/java/com/example/controller/ScoreLogInfoController.java
kmr_dp_HDP/src/main/resources/mappers/ScoreLogInfoMapper.xml
kmr_dp_HDP/src/main/java/com/example/controller/ScoreLogInfoController.java
View file @
f6312d7
...
...
@@ -59,12 +59,12 @@ public class ScoreLogInfoController {
if
(
scoreLogInfo
.
getScore
()
>
30000
)
{
return
null
;
}
System
.
out
.
println
(
"sign ---------------->"
+
sign
);
System
.
out
.
println
(
"score ---------------->"
+
scoreLogInfo
.
getScore
());
System
.
out
.
println
(
"signTime ---------------->"
+
signTime
);
System
.
out
.
println
(
"sign ---------------->"
+
sign
);
System
.
out
.
println
(
"score ---------------->"
+
scoreLogInfo
.
getScore
());
System
.
out
.
println
(
"signTime ---------------->"
+
signTime
);
String
forSign
=
MD5Utils
.
hash
(
keySecret
+
scoreLogInfo
.
getScore
()
+
keySecret
+
signTime
);
System
.
out
.
println
(
"system sign ---------------->"
+
forSign
);
System
.
out
.
println
(
"system sign ---------------->"
+
forSign
);
if
(!
forSign
.
equals
(
sign
))
{
return
null
;
}
...
...
@@ -124,6 +124,8 @@ public class ScoreLogInfoController {
ConfigInfo
configInfo
=
configInfoMapper
.
get
();
Long
maxTime
=
configInfo
.
getMaxTime
();
long
lastTime
=
maxTime
-
l
+
s
;
if
(
lastTime
<
0
)
lastTime
=
0
;
return
builder
.
success
(
true
).
code
(
"2000"
).
content
(
lastTime
).
create
();
}
...
...
kmr_dp_HDP/src/main/resources/mappers/ScoreLogInfoMapper.xml
View file @
f6312d7
...
...
@@ -31,7 +31,7 @@
select(@i:= @i+ 1) r,
a.*
from(
select openid, min(score) score, count(*) num, min(nickname) nickname, min(headimgurl)
nickname
select openid, min(score) score, count(*) num, min(nickname) nickname, min(headimgurl)
headimgurl
from t_kmr_score_log_info
where status= 1
GROUP BY openid) a,
...
...
@@ -46,7 +46,7 @@
from(
select(@i:= @i+ 1) r, a.*
from(
select openid, min(score) score, count(*) num, min(nickname) nickname, min(headimgurl)
nickname
select openid, min(score) score, count(*) num, min(nickname) nickname, min(headimgurl)
headimgurl
from t_kmr_score_log_info
where status= 1
GROUP BY openid) a,(
...
...
Please
register
or
sign in
to post a comment