Эх сурвалжийг харах

回复语音评价问题处理

田爽 4 долоо хоног өмнө
parent
commit
e890699b8d

+ 1 - 1
src/Hotline.Share/Tools/EnumExtensions.cs

@@ -48,7 +48,7 @@ public static class EnumExtensions
     public static List<KeyValuePair<int, string>> GetEnumKeyValueList<TEnum>() where TEnum : Enum
     {
         // 按照枚举定义的顺序获取键值对
-        return typeof(ESeatEvaluate)
+        return typeof(TEnum)
              .GetFields()
              .Where(f => f.IsLiteral) // 过滤出枚举字段
              .Select(f =>