deason 5 vuotta sitten
vanhempi
commit
76ae5d206d

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

@@ -66,7 +66,7 @@ public class VerifyCodeServiceImpl implements VerifyCodeService {
         cacheBean.setVerifyCode(result.getResult());
 
         final String cacheKeyVerifyCode = String.format(CACHE_KEY_VERIFY_CODE, rootOrgId, accountValue);
-        redisClient.set(cacheKeyVerifyCode, cacheBean, 60 * 3);// N秒
+        redisClient.set(cacheKeyVerifyCode, cacheBean, 60);// N秒
 
         return uuid + base64;
     }
@@ -138,7 +138,7 @@ public class VerifyCodeServiceImpl implements VerifyCodeService {
     @Override
     public void verifyCodeResource(String uuid) {
         final String cacheKeyVerifyCodeResource = String.format(CACHE_KEY_VERIFY_CODE_RESOURCE, uuid);
-        redisClient.set(cacheKeyVerifyCodeResource, true, 60 * 3);// N秒
+        redisClient.set(cacheKeyVerifyCodeResource, true, 60);// N秒
     }
 
 }