This commit is contained in:
josc146 2023-05-20 16:46:46 +08:00
parent 8c79f206e6
commit caf7fe08e6

View File

@ -77,7 +77,7 @@ export async function refreshLocalModels(cache: { models: ModelSourceItem[] }, f
cache.models[j].lastUpdatedMs = Date.parse(cache.models[j].lastUpdated);
if (cache.models[i].name === cache.models[j].name) {
if (cache.models[i].size === cache.models[j].size) {
if (cache.models[i].size <= cache.models[j].size) { // j is local file
if (cache.models[i].lastUpdatedMs! < cache.models[j].lastUpdatedMs!) {
cache.models[i] = Object.assign({}, cache.models[i], cache.models[j]);
} else {