This commit is contained in:
2025-05-14 11:21:51 +08:00
parent 8b845a27c2
commit 97acaf9195
4 changed files with 167 additions and 51 deletions
+4 -4
View File
@@ -288,13 +288,13 @@ public partial class copydownload : System.Web.UI.Page
string fname = Path.GetFileName(file);
foreach (var rule in replaceRules)
{
rname = rname.Replace(rule.Key, rule.Value);
fname = fname.Replace(rule.Key, rule.Value);
}
File.Copy(file, path + "\\" + rname, true);
if (!File.Exists(path + "\\" + rname))
File.Copy(file, path + "\\" + fname, true);
if (!File.Exists(path + "\\" + fname))
{
File.Copy(file, path + "\\" + rname, true);
File.Copy(file, path + "\\" + fname, true);
}