核验完成时已经超过23:16:54,租期已结束,这个要添加冗余时间,应为实际链上操作是需要时间的,默认冗余时间是3分钟,可以配置
This commit is contained in:
1 parent
1538cd0819
commit
90e74603bb
4 files changed
+19
-3
No files matched your search
@@ -13,6 +13,8 @@ import java.util.function.Supplier;
|
||||
@Service
|
||||
@lombok.extern.slf4j.Slf4j
|
||||
public class RentalTasks {
|
||||
@org.springframework.beans.factory.annotation.Value("${rental.delivery.verification-grace-seconds:180}")
|
||||
private long verificationGraceSeconds = 180L;
|
||||
@org.springframework.beans.factory.annotation.Autowired(required = false)
|
||||
private org.springframework.context.ApplicationEventPublisher deliveryEvents;
|
||||
private final RentalStore store;
|
||||
@@ -692,7 +694,8 @@ public class RentalTasks {
|
||||
Boolean.TRUE.equals(proof.get("delivery_proven")),
|
||||
proof.get("verified_resource_quantity") == null ? null
|
||||
: number(proof, "verified_resource_quantity"),
|
||||
number(order, "target_resource_quantity"), expires, checkedAt);
|
||||
number(order, "target_resource_quantity"), expires, checkedAt,
|
||||
verificationGraceSeconds);
|
||||
String gap = RentalDeliveryDiagnostics.evidenceGap(text(proof, "delivery_evidence_gap"));
|
||||
if (!gap.isEmpty() && !Boolean.TRUE.equals(proof.get("delivery_proven"))) {
|
||||
reviewReason += ";" + gap;
|
||||
|
||||
Reference in new issue
Block a user