Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-07 10:10:30 +08:00
parent a0892ef77e
commit d7f7ce60a8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -89,6 +89,7 @@ func GetAssetHash(hash string) *AssetHash {
if !filelock.IsExist(filepath.Join(util.DataDir, asset.Path)) {
// 文件不存在,清理缓存
delete(assetHashCache, hash)
delete(assetPathHashCache, asset.Path)
return nil
}
return asset