Skip to content

Commit

Permalink
窗体修改,部分BUG修复
Browse files Browse the repository at this point in the history
  • Loading branch information
lalakii committed Oct 10, 2024
1 parent 152e191 commit 155a4a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ public int CreateKeyStore(AlgorithmType type, int year, string alias, string pwd
{
alias += ".jks";
}
using (var fs = new FileStream(Path.GetFileName(alias), FileMode.Create, FileAccess.Write))
var savePath = Path.GetFileName(alias);
if (Directory.Exists(savePath))
{
MessageBox.Show("名称冲突,请修改名称!");
return 1;
}
using (var fs = new FileStream(savePath, FileMode.Create, FileAccess.Write))
{
store.Save(fs, pwd.ToCharArray(), rdm);
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

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

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

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

## By lalaki.cn

0 comments on commit 155a4a4

Please sign in to comment.