feat: gen_number_with_rule bug

This commit is contained in:
caoqianming 2025-06-11 10:58:31 +08:00
parent bfc37f69af
commit fea3c320a9
1 changed files with 1 additions and 0 deletions

View File

@ -698,6 +698,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
cq_w = 4
if '02d' in rule:
cq_w = 2
n_count = 0
if wpr:
try:
n_count = int(wpr.number[-cq_w:].lstrip('0'))