Commit 5845cc6a authored by renjie's avatar renjie

Merge branch 'dev-zrj' into 'staging'

修改ip延迟bug

See merge request !65
parents 026cc943 6b500769
......@@ -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