fix: 手机号码校验逻辑问题

pull/10180/head
jiangweidong 2023-04-10 17:57:09 +08:00 committed by Jiangjie.Bai
parent b7badc146a
commit 111296ecd2
1 changed files with 1 additions and 1 deletions

View File

@ -54,5 +54,5 @@ class PhoneValidator:
except NumberParseException:
valid = False
if valid:
if not valid:
raise serializers.ValidationError(self.message)