Kaynağa Gözat

新增定时同步wzh用户信息至数据库

husj 1 ay önce
ebeveyn
işleme
9db0a50885

+ 1 - 1
src/main/java/top/husj/husj_wx/schedule/UserSyncSchedule.java

@@ -19,7 +19,7 @@ public class UserSyncSchedule {
     private RestTemplate restTemplate;
     @Autowired
     private UserService userService;
-    @Scheduled(cron = "0 * * * * ?")
+    @Scheduled(cron = "0 0 * * * ?")
     public void syncUser() {
         Long count = 0L;
         try {