From d891541b4e76fb38e94c3f6aa501fb2998090c54 Mon Sep 17 00:00:00 2001 From: leiurayer <1432593898@qq.com> Date: Sat, 12 Oct 2024 15:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DownKyi.Core/BiliApi/Login/LoginQR.cs | 2 +- src/DownKyi.Core/BiliApi/LoginNew/LoginQR.cs | 2 +- src/DownKyi/ViewModels/ViewUserSpaceViewModel.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DownKyi.Core/BiliApi/Login/LoginQR.cs b/src/DownKyi.Core/BiliApi/Login/LoginQR.cs index a04e2d7..35009f4 100644 --- a/src/DownKyi.Core/BiliApi/Login/LoginQR.cs +++ b/src/DownKyi.Core/BiliApi/Login/LoginQR.cs @@ -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); diff --git a/src/DownKyi.Core/BiliApi/LoginNew/LoginQR.cs b/src/DownKyi.Core/BiliApi/LoginNew/LoginQR.cs index 8e0d86e..c51d0d4 100644 --- a/src/DownKyi.Core/BiliApi/LoginNew/LoginQR.cs +++ b/src/DownKyi.Core/BiliApi/LoginNew/LoginQR.cs @@ -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); diff --git a/src/DownKyi/ViewModels/ViewUserSpaceViewModel.cs b/src/DownKyi/ViewModels/ViewUserSpaceViewModel.cs index 24994ec..a0b7f8e 100644 --- a/src/DownKyi/ViewModels/ViewUserSpaceViewModel.cs +++ b/src/DownKyi/ViewModels/ViewUserSpaceViewModel.cs @@ -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; }