Commit 6b500769 authored by renjie's avatar renjie

修改ip延迟bug

parent 26399948
......@@ -621,16 +621,11 @@ public class IpResourceServiceImpl implements IpResourceService {
}
}
}
if (x.getStatus() == 6)
if (x.getStatus() == 6 || (x.isSpecialLine() && x.getPurchasedTime() > (Instant.now().toEpochMilli() - 12*60*1000)))
x.setStatus(3);
if (x.getStatus() == 3) {
x.setAddr("");
}
if (x.isSpecialLine() && x.getPurchasedTime() > (Instant.now().toEpochMilli() - 12*60*1000)) {
x.setStatus(3);
ipResourceRepository.save(x);
x.setAddr("");
}
SpecialLine specialLine = specialLineRepository.findAll().get(0);
if (x.isSpecialLine())
ipResourceDtos.add(new IpResourceDto(x, shopDto, false, specialLine));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment