3d76e1df by joe

拿掉hash 校验

1 parent c0a51c54
...@@ -43,9 +43,9 @@ public class ImgInfoController { ...@@ -43,9 +43,9 @@ public class ImgInfoController {
43 } catch (IOException e) { 43 } catch (IOException e) {
44 e.printStackTrace(); 44 e.printStackTrace();
45 } 45 }
46 if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){ 46 // if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){
47 String checksum1 = MD5Utils.hash(access_token + openid + state + timestamp + rands + jsondata + secret); 47 // String checksum1 = MD5Utils.hash(access_token + openid + state + timestamp + rands + jsondata + secret);
48 if(checksum1.equals(checksum)){ 48 // if(checksum1.equals(checksum)){
49 imgInfo.setGtmcUid(map.get("gtmc_uid").toString()); 49 imgInfo.setGtmcUid(map.get("gtmc_uid").toString());
50 imgInfo.setGtmcDepartment(map.get("gtmc_department").toString()); 50 imgInfo.setGtmcDepartment(map.get("gtmc_department").toString());
51 imgInfo.setGtmcName(map.get("gtmc_name").toString()); 51 imgInfo.setGtmcName(map.get("gtmc_name").toString());
...@@ -57,8 +57,8 @@ public class ImgInfoController { ...@@ -57,8 +57,8 @@ public class ImgInfoController {
57 code = "2000"; 57 code = "2000";
58 flag = true; 58 flag = true;
59 } 59 }
60 } 60 // }
61 } 61 // }
62 } 62 }
63 63
64 return builder.success(flag).content(imgInfo).code(code).create(); 64 return builder.success(flag).content(imgInfo).code(code).create();
...@@ -81,9 +81,9 @@ public class ImgInfoController { ...@@ -81,9 +81,9 @@ public class ImgInfoController {
81 } catch (IOException e) { 81 } catch (IOException e) {
82 e.printStackTrace(); 82 e.printStackTrace();
83 } 83 }
84 if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){ 84 // if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){
85 String checksum1 = MD5Utils.hash(access_token + openid + state + timestamp + rands + jsondata + secret); 85 // String checksum1 = MD5Utils.hash(access_token + openid + state + timestamp + rands + jsondata + secret);
86 if(checksum1.equals(checksum)){ 86 // if(checksum1.equals(checksum)){
87 imgInfo.setGtmcUid(map.get("gtmc_uid").toString()); 87 imgInfo.setGtmcUid(map.get("gtmc_uid").toString());
88 imgInfo.setGtmcDepartment(map.get("gtmc_department").toString()); 88 imgInfo.setGtmcDepartment(map.get("gtmc_department").toString());
89 imgInfo.setGtmcName(map.get("gtmc_name").toString()); 89 imgInfo.setGtmcName(map.get("gtmc_name").toString());
...@@ -95,8 +95,8 @@ public class ImgInfoController { ...@@ -95,8 +95,8 @@ public class ImgInfoController {
95 code = "2000"; 95 code = "2000";
96 flag = true; 96 flag = true;
97 } 97 }
98 } 98 // }
99 } 99 // }
100 } 100 }
101 101
102 return builder.success(flag).content(imgInfo).code(code).create(); 102 return builder.success(flag).content(imgInfo).code(code).create();
......
...@@ -60,9 +60,9 @@ public class ScoreLogInfoController { ...@@ -60,9 +60,9 @@ public class ScoreLogInfoController {
60 } catch (IOException e) { 60 } catch (IOException e) {
61 e.printStackTrace(); 61 e.printStackTrace();
62 } 62 }
63 if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){ 63 // if(map != null && map.containsKey("gtmc_code") && map.get("gtmc_code").toString().equals("200")){
64 String checksum1 = MD5Utils.hash(access_token +openid +state +timestamp +rands +jsondata +secret); 64 // String checksum1 = MD5Utils.hash(access_token +openid +state +timestamp +rands +jsondata +secret);
65 if(checksum1.equals(checksum)){ 65 // if(checksum1.equals(checksum)){
66 scoreLogInfo.setGtmcUid(map.get("gtmc_uid").toString()); 66 scoreLogInfo.setGtmcUid(map.get("gtmc_uid").toString());
67 scoreLogInfo.setGtmcDepartment(map.get("gtmc_department").toString()); 67 scoreLogInfo.setGtmcDepartment(map.get("gtmc_department").toString());
68 scoreLogInfo.setGtmcName(map.get("gtmc_name").toString()); 68 scoreLogInfo.setGtmcName(map.get("gtmc_name").toString());
...@@ -70,8 +70,8 @@ public class ScoreLogInfoController { ...@@ -70,8 +70,8 @@ public class ScoreLogInfoController {
70 if(code.equals("2000")){ 70 if(code.equals("2000")){
71 flag = true; 71 flag = true;
72 } 72 }
73 } 73 // }
74 } 74 // }
75 } 75 }
76 return builder.success(flag).code(code).create(); 76 return builder.success(flag).code(code).create();
77 } 77 }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 select(@i:= @i+ 1) r, 31 select(@i:= @i+ 1) r,
32 a.* 32 a.*
33 from( 33 from(
34 select openid, min(score) score, nickname, headimgurl 34 select openid, min(score) score, count(*) num, nickname, headimgurl
35 from t_kmr_score_log_info 35 from t_kmr_score_log_info
36 where status= 1 36 where status= 1
37 GROUP BY openid) a, 37 GROUP BY openid) a,
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
46 from( 46 from(
47 select(@i:= @i+ 1) r, a.* 47 select(@i:= @i+ 1) r, a.*
48 from( 48 from(
49 select openid, min(score) score, nickname, headimgurl 49 select openid, min(score) score, count(*) num, nickname, headimgurl
50 from t_kmr_score_log_info 50 from t_kmr_score_log_info
51 where status= 1 51 where status= 1
52 GROUP BY openid) a,( 52 GROUP BY openid) a,(
......