Merge remote-tracking branch 'origin/feature/auto_with_checkresults' into feature/auto_with_checkresults

This commit is contained in:
2022-06-08 21:41:23 +02:00
7 changed files with 25 additions and 14 deletions
+7 -5
View File
@@ -1,11 +1,13 @@
import random
import string
# letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T', '1', '2', '3', '4', '5', '6', '7',
# '8', '9']
from pojo.captcha_error_contact_pojo import ContactInErrorPojo
from pojo.contact_pojo import ContactPojo
letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'P', 'Q', 'R', 'S', 'T', '1', '2', '3', '4', '5', '6', '7',
'8', '9']
letters = ['E', 'G', 'M']
def get_random_id_number() -> str:
@@ -14,11 +16,11 @@ def get_random_id_number() -> str:
id_number = str(ran)
return id_number
# 产生中国护照号
def get_random_passport_id_number() -> str:
S = 7 # number of characters in the string.
S = 8 # number of characters in the string.
ran = ''.join(random.choices(string.digits, k=S))
id_number = "E" + random.choice(letters) + str(ran)
id_number = random.choice(letters) + str(ran)
return id_number