Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-22 17:37:50 +08:00
parent 1e5b30c5fd
commit 6b0732c99b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -104,7 +104,7 @@ func InsertLocalAssets(id string, assetAbsPaths []string, isUpload bool) (succMa
}
if "" != existAssetPath && !strings.HasPrefix(hash, "random_") {
succMap[baseName] = existAssetPath
succMap[baseName] = strings.TrimPrefix(existAssetPath, "/")
} else {
fName = util.AssetName(fName, ast.NewNodeID())
writePath := filepath.Join(assetsDirPath, fName)