Commit 37763c71e04a0b82d6a3f9eab37f7c67c68bf55e
1 parent
237a636a30
Exists in
master
and in
8 other branches
hahahah
Showing 1 changed file with 4 additions and 3 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/MongoSyncUtil.java
View file @
37763c7
... | ... | @@ -42,9 +42,10 @@ |
42 | 42 | post.setRequestBody(pairs); |
43 | 43 | client.executeMethod(post); |
44 | 44 | int statusCode = post.getStatusCode(); |
45 | - System.out.println(post.getResponseBodyAsString()); | |
45 | + String result = post.getResponseBodyAsString(); | |
46 | + System.out.println(result); | |
46 | 47 | post.releaseConnection(); |
47 | - if (200 == statusCode) { | |
48 | + if (200 == statusCode && StringUtils.isNotEmpty(result) && result.indexOf("success") > 0) { | |
48 | 49 | boo = true; |
49 | 50 | } |
50 | 51 | return boo; |
... | ... | @@ -97,7 +98,7 @@ |
97 | 98 | info.setLimit(456); |
98 | 99 | Object aaa = JsonUtil.str2Obj(JsonUtil.obj2JsonString(info), Class.forName(info.getClass().getName())); |
99 | 100 | System.out.println(MD5Utils.md5(aaa.getClass().getName())); |
100 | - System.out.println(LymsEncodeUtil.aesDecrypt("26EB0301C4A2410E90985A3E55856E4B15E06845FEEF3E804F1E467AF7CAD7F17221606C305AC2686157B1226A844BED", "Lymsh@2016")); | |
101 | + System.out.println(LymsEncodeUtil.aesEncrypt("com.lyms.platform.pojo.AntenatalExaminationModel", "Lymsh@2016")); | |
101 | 102 | System.out.println(LymsEncodeUtil.aesDecrypt("816A1245685928DEFB0013DE333FDBE5E23240E37A06898638F6ECB360C45EF7CFD98EA2B2C954BA93DDDDDFF01C12741408F02334BD3629C04306D7D436C0B6BB326A08B319194512E863A75E87ACD2B06E058F110B1480BBB1AB608ECD7A567B590F564416A1804F21E9E9528604B3","Lymsh@2016")); |
102 | 103 | String ssss = LymsEncodeUtil.aesDecrypt("FE679036A0EE365E30DD51E0E3C38460E8B20EEDC76E8E0B04267438BFFCFFFD76D0C562244A2C914B1254B7E706BA124EE8FF560F8DEF9AD8C87EA9C793F0E16CED2A06DF8BB124DF034D21FF38F41B6CC9B1ECB30E408073D62327F5ADF8F17E7C44235EF3BCF169A1E5AFA51AD746AB28C908FBB355847E77CD2329B15174533858177A5BED3610A115C9797B61794E9CF9D5A84C6892F0D6DB9A7DB5CF2180F0CC847201108564856B536842F3DAFC9E80428D06880396DDCA4AFF0ABD1E78D41F6418638C0427768158860490112A138B3FBE4ACA572EEBDCAE06070314AAB11E02D65759BB940B2D92F9A6AB7B8C195E19E3CACD1FB05301790B7A689C", "Lymsh@2016"); |
103 | 104 | ssss = new String(ssss.getBytes(),"utf-8"); |