@@ -390,6 +390,7 @@ DJANGO_WE_COMPONENT_CALLBACK_TEMPLATE = 'page/preauth/preauth_success.html' |
||
| 390 | 390 |
DEBUG_STATISTIC_DATA_FLAG = False |
| 391 | 391 |
|
| 392 | 392 |
CHECK_DUPLOAD_ENABLED = True # 是否启用重复提交校验 |
| 393 |
+CHECK_TESTSN_ENABLED = True # 是否启用测试序列号校验 |
|
| 393 | 394 |
|
| 394 | 395 |
KODO_DEFAULT_BRAND_PK = 0 |
| 395 | 396 |
KODO_DEFAULT_BRAND_ID = '' |
@@ -100,7 +100,7 @@ def clerk_sale_submit_api(request): |
||
| 100 | 100 |
test_sn=test_sn, |
| 101 | 101 |
) |
| 102 | 102 |
|
| 103 |
- if test_sn: |
|
| 103 |
+ if settings.CHECK_TESTSN_ENABLED and test_sn: |
|
| 104 | 104 |
return response(200, data={
|
| 105 | 105 |
'integral': 0, |
| 106 | 106 |
'total_integral': clerk.integral, |