From d0b2f577c83db85e15544e502cb5ef9924ec0463 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Sun, 6 Mar 2022 20:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=B7=B1=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=EF=BC=8C=E4=BF=9D=E8=AF=81=E5=A4=96=E9=83=A8=E4=BF=AE=E6=94=B9?= =?UTF-8?q?list=E5=90=8E=EF=BC=8C=E4=B8=8D=E4=BC=9A=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E8=B0=83=E7=94=A8=E5=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi.Core/BiliApi/BiliUtils/Constant.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DownKyi.Core/BiliApi/BiliUtils/Constant.cs b/DownKyi.Core/BiliApi/BiliUtils/Constant.cs index 581ccba..23dba62 100644 --- a/DownKyi.Core/BiliApi/BiliUtils/Constant.cs +++ b/DownKyi.Core/BiliApi/BiliUtils/Constant.cs @@ -33,7 +33,10 @@ namespace DownKyi.Core.BiliApi.BiliUtils /// public static List GetResolutions() { - return resolutions; + // 使用深复制, + // 保证外部修改list后, + // 不会影响其他调用处 + return new List(resolutions); } ///