3d76e1df by joe

拿掉hash 校验

1 parent c0a51c54
......@@ -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();
......
......@@ -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();
}
......
......@@ -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,(
......