Commit 79c5663894b03db651b764d2db1e83e0bf98ebdd

Authored by liwei2917
1 parent 15fc5d8a

修改同步时间(测试)

src/main/java/com/cnlive/shenhe/job/UsersSiteJob.java
@@ -46,7 +46,7 @@ public class UsersSiteJob { @@ -46,7 +46,7 @@ public class UsersSiteJob {
46 ShySitesMapper shySitesMapper; 46 ShySitesMapper shySitesMapper;
47 47
48 48
49 - @Scheduled(fixedRate = 30 * 60 * 1000) 49 + @Scheduled(fixedRate = 1 * 60 * 1000)
50 public void syncUsers() { 50 public void syncUsers() {
51 try { 51 try {
52 String tm = "0"; 52 String tm = "0";
@@ -64,6 +64,7 @@ public class UsersSiteJob { @@ -64,6 +64,7 @@ public class UsersSiteJob {
64 logger.info("httpUrl===" + httpUrl); 64 logger.info("httpUrl===" + httpUrl);
65 Map<String, String> resultMap = HttpUtil.init().post(httpUrl); 65 Map<String, String> resultMap = HttpUtil.init().post(httpUrl);
66 JSONObject result = JSON.parseObject(resultMap.get("result")); 66 JSONObject result = JSON.parseObject(resultMap.get("result"));
  67 + logger.error("请求用户云结果,result:{}", result);
67 String errorCode = result.getString("errorCode"); 68 String errorCode = result.getString("errorCode");
68 if ("0".equals(errorCode)) { 69 if ("0".equals(errorCode)) {
69 JSONArray data = result.getJSONArray("data"); 70 JSONArray data = result.getJSONArray("data");