deason 5 năm trước cách đây
mục cha
commit
37077d1178

+ 1 - 1
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/VerifyCodeServiceImpl.java

@@ -97,7 +97,7 @@ public class VerifyCodeServiceImpl implements VerifyCodeService {
         final String cacheKeyVerifyCode = String.format(CACHE_KEY_VERIFY_CODE, info.getRootOrgId(), info.getAccountValue());
         VerifyCodeCacheBean cacheBean = redisClient.get(cacheKeyVerifyCode, VerifyCodeCacheBean.class);
         if (cacheBean == null) {
-            throw new StatusException("400", "账号不存在或验证码已过期,请重试!");
+            throw new StatusException("400", "验证码错误或已过期,请重试!");
         }
 
         final String cacheKeyVerifyCodeResource = String.format(CACHE_KEY_VERIFY_CODE_RESOURCE, cacheBean.getUuid());

+ 3 - 1
examcloud-core-basic-starter/src/main/java/cn/com/qmth/examcloud/core/basic/starter/config/ScheduleConfig.java

@@ -6,6 +6,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
+import javax.annotation.PostConstruct;
 import java.io.Serializable;
 
 @Component
@@ -20,7 +21,8 @@ public class ScheduleConfig implements Serializable {
     /**
      * 定时刷新登录规则(每N分钟执行)
      */
-    @Scheduled(cron = "0 1/1 * * * ?")
+    // @PostConstruct
+    @Scheduled(cron = "0 30/30 * * * ?")
     public void execute() {
         loginRuleService.refreshLoginRule();
     }