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
3d76e1df
authored
2017-12-03 10:43:45 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
拿掉hash 校验
1 parent
c0a51c54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
kmr_dp_HDP/src/main/java/com/example/controller/ImgInfoController.java
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/ImgInfoController.java
View file @
3d76e1d
...
...
@@ -43,9 +43,9 @@ public class ImgInfoController {
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
if
(
map
!=
null
&&
map
.
containsKey
(
"gtmc_code"
)
&&
map
.
get
(
"gtmc_code"
).
toString
().
equals
(
"200"
)){
String
checksum1
=
MD5Utils
.
hash
(
access_token
+
openid
+
state
+
timestamp
+
rands
+
jsondata
+
secret
);
if
(
checksum1
.
equals
(
checksum
)){
//
if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){
//
String checksum1 = MD5Utils.hash(access_token + openid + state + timestamp + rands + jsondata + secret);
//
if(checksum1.equals(checksum)){
imgInfo
.
setGtmcUid
(
map
.
get
(
"gtmc_uid"
).
toString
());
imgInfo
.
setGtmcDepartment
(
map
.
get
(
"gtmc_department"
).
toString
());
imgInfo
.
setGtmcName
(
map
.
get
(
"gtmc_name"
).
toString
());
...
...
@@ -57,8 +57,8 @@ public class ImgInfoController {
code
=
"2000"
;
flag
=
true
;
}
}
}
//
}
//
}
}
return
builder
.
success
(
flag
).
content
(
imgInfo
).
code
(
code
).
create
();
...
...
@@ -81,9 +81,9 @@ public class ImgInfoController {
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
if
(
map
!=
null
&&
map
.
containsKey
(
"gtmc_code"
)
&&
map
.
get
(
"gtmc_code"
).
toString
().
equals
(
"200"
)){
String
checksum1
=
MD5Utils
.
hash
(
access_token
+
openid
+
state
+
timestamp
+
rands
+
jsondata
+
secret
);
if
(
checksum1
.
equals
(
checksum
)){
//
if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){
//
String checksum1 = MD5Utils.hash(access_token + openid + state + timestamp + rands + jsondata + secret);
//
if(checksum1.equals(checksum)){
imgInfo
.
setGtmcUid
(
map
.
get
(
"gtmc_uid"
).
toString
());
imgInfo
.
setGtmcDepartment
(
map
.
get
(
"gtmc_department"
).
toString
());
imgInfo
.
setGtmcName
(
map
.
get
(
"gtmc_name"
).
toString
());
...
...
@@ -95,8 +95,8 @@ public class ImgInfoController {
code
=
"2000"
;
flag
=
true
;
}
}
}
//
}
//
}
}
return
builder
.
success
(
flag
).
content
(
imgInfo
).
code
(
code
).
create
();
...
...
kmr_dp_HDP/src/main/java/com/example/controller/ScoreLogInfoController.java
View file @
3d76e1d
...
...
@@ -60,9 +60,9 @@ public class ScoreLogInfoController {
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
if
(
map
!=
null
&&
map
.
containsKey
(
"gtmc_code"
)
&&
map
.
get
(
"gtmc_code"
).
toString
().
equals
(
"200"
)){
String
checksum1
=
MD5Utils
.
hash
(
access_token
+
openid
+
state
+
timestamp
+
rands
+
jsondata
+
secret
);
if
(
checksum1
.
equals
(
checksum
)){
//
if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){
//
String checksum1 = MD5Utils.hash(access_token +openid +state +timestamp +rands +jsondata +secret);
//
if(checksum1.equals(checksum)){
scoreLogInfo
.
setGtmcUid
(
map
.
get
(
"gtmc_uid"
).
toString
());
scoreLogInfo
.
setGtmcDepartment
(
map
.
get
(
"gtmc_department"
).
toString
());
scoreLogInfo
.
setGtmcName
(
map
.
get
(
"gtmc_name"
).
toString
());
...
...
@@ -70,8 +70,8 @@ public class ScoreLogInfoController {
if
(
code
.
equals
(
"2000"
)){
flag
=
true
;
}
}
}
//
}
//
}
}
return
builder
.
success
(
flag
).
code
(
code
).
create
();
}
...
...
kmr_dp_HDP/src/main/resources/mappers/ScoreLogInfoMapper.xml
View file @
3d76e1d
...
...
@@ -31,7 +31,7 @@
select(@i:= @i+ 1) r,
a.*
from(
select openid, min(score) score, nickname, headimgurl
select openid, min(score) score,
count(*) num,
nickname, 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, nickname, headimgurl
select openid, min(score) score,
count(*) num,
nickname, headimgurl
from t_kmr_score_log_info
where status= 1
GROUP BY openid) a,(
...
...
Please
register
or
sign in
to post a comment