fix: dynamic 모드GetConst에서 바뀐게 없을때 버그

This commit is contained in:
2022-04-07 03:03:38 +09:00
parent b714c7dff1
commit 20bd638af7
+1 -1
View File
@@ -109,7 +109,7 @@ class GetConst extends \sammo\BaseAPI
public function tryCache(): ?APICacheResult
{
if (is_subclass_of('\\sammo\\VersionGit', '\\sammo\VersionGitDynamic')) {
return new APICacheResult(TimeUtil::secondsToDateTime($this->findLastModified(), true, true));
return new APICacheResult(TimeUtil::secondsToDateTime($this->findLastModified()??\time(), true, true));
}
return new APICacheResult(null, $this->getCacheKey());