guozhaoshun 6 tahun lalu
induk
melakukan
85a47628ba

+ 1 - 1
rankin-user-service/src/main/java/cn/rankin/userservice/service/QRCodeService.java

@@ -26,7 +26,7 @@ public class QRCodeService {
         QRCode qrCode = qrcodeRepository.findLastOne(eid);
         if(null != qrCode ){
             Date now = new Date();
-            Date time = DateUtil.getAfterIntervalMInDate(qrCode.getTime(), 5);
+            Date time = DateUtil.getAfterIntervalMInDate(qrCode.getTime(), 1);
             if(now.getTime() > time.getTime()){
                 qrCode.setStatus(1); //已失效|过期
                 qrcodeRepository.update(qrCode);