Skip to content

Commit 155a4a4

Browse files
committed
窗体修改,部分BUG修复
1 parent 152e191 commit 155a4a4

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Program.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@ public int CreateKeyStore(AlgorithmType type, int year, string alias, string pwd
100100
{
101101
alias += ".jks";
102102
}
103-
using (var fs = new FileStream(Path.GetFileName(alias), FileMode.Create, FileAccess.Write))
103+
var savePath = Path.GetFileName(alias);
104+
if (Directory.Exists(savePath))
105+
{
106+
MessageBox.Show("名称冲突,请修改名称!");
107+
return 1;
108+
}
109+
using (var fs = new FileStream(savePath, FileMode.Create, FileAccess.Write))
104110
{
105111
store.Save(fs, pwd.ToCharArray(), rdm);
106112
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
[本地下载](https://github.com/lalakii/AndroidKeyGen/releases)
1818

19-
[备用下载 蓝奏云 1](https://a01.lanzout.com/iUf2H2c82zkf)
19+
[备用下载 蓝奏云 1](https://a01.lanzoui.com/i4tg52c83p7i)
2020

21-
[备用下载 蓝奏云 2](https://a01.lanzoui.com/iUf2H2c82zkf)
21+
[备用下载 蓝奏云 2](https://a01.lanzout.com/i4tg52c83p7i)
2222

2323
## By lalaki.cn

0 commit comments

Comments
 (0)