diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Account.java b/src/main/java/org/ntlab/acanthus_server/entities/Account.java index ce7d2b2..1b17fd1 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Account.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Account.java @@ -24,17 +24,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jdk.jshell.execution.LoaderDelegate; -import org.ntlab.acanthus_server.models.Gallery; -import javax.xml.crypto.Data; -import java.text.DateFormat; import java.time.Duration; import java.time.LocalDateTime; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.UUID; +import java.util.*; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ @@ -64,7 +57,7 @@ @JsonIgnore private LocalDateTime lastAccess; - + public Account() {} //----------------------------------------------------------------- //コンストラクト public Account(Integer idMargin) { @@ -185,9 +178,9 @@ // 時刻比較 var duration = Duration.between(lastAccess, nowDateTime).toHours(); - if (duration > timeoutThreshold) return false; + if (duration > timeoutThreshold) return true; - return token.equals(this.token); + return !token.equals(this.token); } //-----------------------------------------------------------------