修复登录二维码无法显示的问题

v1.6.x
leiurayer 3 weeks ago
parent 29c6aa0375
commit d891541b4e

@ -120,7 +120,7 @@ namespace DownKyi.Core.BiliApi.Login
public static BitmapImage GetLoginQRCode(string url) public static BitmapImage GetLoginQRCode(string url)
{ {
// 设置的参数影响app能否成功扫码 // 设置的参数影响app能否成功扫码
Bitmap qrCode = Utils.QRCode.EncodeQRCode(url, 10, 10, null, 0, 0, false); Bitmap qrCode = Utils.QRCode.EncodeQRCode(url, 12, 10, null, 0, 0, false);
MemoryStream ms = new MemoryStream(); MemoryStream ms = new MemoryStream();
qrCode.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); qrCode.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);

@ -83,7 +83,7 @@ namespace DownKyi.Core.BiliApi.LoginNew
public static BitmapImage GetLoginQRCode(string url) public static BitmapImage GetLoginQRCode(string url)
{ {
// 设置的参数影响app能否成功扫码 // 设置的参数影响app能否成功扫码
Bitmap qrCode = Utils.QRCode.EncodeQRCode(url, 10, 10, null, 0, 0, false); Bitmap qrCode = Utils.QRCode.EncodeQRCode(url, 12, 10, null, 0, 0, false);
MemoryStream ms = new MemoryStream(); MemoryStream ms = new MemoryStream();
qrCode.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); qrCode.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);

@ -362,7 +362,7 @@ namespace DownKyi.ViewModels
sexUri = new Uri($"pack://application:,,,/Resources/sex/female.png"); sexUri = new Uri($"pack://application:,,,/Resources/sex/female.png");
} }
// 显示vip信息 // 显示vip信息
if (userInfo.Vip.Label.Text == null || userInfo.Vip.Label.Text == "") if (userInfo.Vip == null || userInfo.Vip.Label.Text == null || userInfo.Vip.Label.Text == "")
{ {
VipTypeVisibility = Visibility.Collapsed; VipTypeVisibility = Visibility.Collapsed;
} }

Loading…
Cancel
Save