修改中控日志接口授权为none

This commit is contained in:
胡尧
2025-05-14 16:09:06 +08:00
parent 9cb22d810e
commit 5477582a69
3 changed files with 5 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ class SaleOrder(models.Model):
'embryo_redundancy_id': line.embryo_redundancy_id,
}
product_name = ''
match = re.search(r'(S\d{5}-\d)', product.name)
match = re.search(r'(S\d{5}-\d*)', product.name)
# 如果匹配成功,提取结果
if match:
product_name = match.group(0)