Commit 2423e4df80007dec6b7d1a2bc93e6df79d901840
1 parent
6e2fa199dd
Exists in
master
and in
6 other branches
update code
Showing 3 changed files with 12 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/SyncDataController.java
View file @
2423e4d
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HttpClientUtil.java
View file @
2423e4d
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/SendMysqlSyncDatUtil.java
View file @
2423e4d
... | ... | @@ -85,8 +85,16 @@ |
85 | 85 | { |
86 | 86 | for(String url : urls) |
87 | 87 | { |
88 | - String result = HttpClientUtil.doPostSSL(url,json,"3d19960bf3e81e7d816c4f26051c49ba"); | |
89 | - System.out.println("sync mysql result = " + result); | |
88 | + for (int i = 0 ; i < 3 ; i++) | |
89 | + { | |
90 | + String result = HttpClientUtil.doPostSSL(url,json,"3d19960bf3e81e7d816c4f26051c49ba"); | |
91 | + System.out.println("sync mysql result = " + result+";url="+url); | |
92 | + if (result == null) | |
93 | + { | |
94 | + continue; | |
95 | + } | |
96 | + break; | |
97 | + } | |
90 | 98 | } |
91 | 99 | } |
92 | 100 | } catch (Exception e) { |