mirror of
https://github.com/leiurayer/downkyi.git
synced 2025-03-13 18:50:15 +08:00
修复登录二维码无法显示的问题
This commit is contained in:
parent
29c6aa0375
commit
d891541b4e
@ -120,7 +120,7 @@ namespace DownKyi.Core.BiliApi.Login
|
||||
public static BitmapImage GetLoginQRCode(string url)
|
||||
{
|
||||
// 设置的参数影响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();
|
||||
qrCode.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
|
||||
|
@ -83,7 +83,7 @@ namespace DownKyi.Core.BiliApi.LoginNew
|
||||
public static BitmapImage GetLoginQRCode(string url)
|
||||
{
|
||||
// 设置的参数影响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();
|
||||
qrCode.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
|
||||
|
@ -362,7 +362,7 @@ namespace DownKyi.ViewModels
|
||||
sexUri = new Uri($"pack://application:,,,/Resources/sex/female.png");
|
||||
}
|
||||
// 显示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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user