|
@@ -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);
|