perf: 优化截取方法

This commit is contained in:
halo
2022-07-01 21:36:41 +08:00
committed by Jiangjie.Bai
parent c5bf4075e7
commit ca19e45905

View File

@@ -47,5 +47,5 @@ class SessionCommandSerializer(SimpleSessionCommandSerializer):
def validate_system_user(self, value):
if len(value) > 64:
value = pretty_string(value, 32)
value = pretty_string(value, 64)
return value