Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit 4bcf578

Browse files
committed
fix: delete qrcode after login
1 parent 8601011 commit 4bcf578

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lagrange.Milky/Core/CoreLoginService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public async Task StartAsync(CancellationToken token)
3737
uint uin = _configuration.Login.Uin ?? 0;
3838
string password = _configuration.Login.Password ?? string.Empty;
3939
bool result = await _bot.Login(uin, password, token);
40+
if (File.Exists("qrcode.png"))
41+
File.Delete("qrcode.png");
4042
if (!result)
4143
{
4244
_logger.LogLoginFailed();

0 commit comments

Comments
 (0)