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; }