feat: 商家派单金额限额改为后台可配置,派单接口读取XcxSysPeizhi

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-01 11:00:33 +08:00
parent d53ddf51cc
commit 47c6e3b024
7 changed files with 134 additions and 13 deletions

View File

@@ -3,6 +3,8 @@
"""
import logging
from decimal import Decimal
from django.conf import settings
from django.core.cache import cache
@@ -126,6 +128,20 @@ class WxConfig:
return int(row.shangpin_shenhe_mode)
return 2
@property
def SHANGJIA_PAIFA_JIAGE_MIN(self):
row = _load_row()
if row is not None and row.shangjia_paifa_jiage_min is not None:
return row.shangjia_paifa_jiage_min
return Decimal('10')
@property
def SHANGJIA_PAIFA_JIAGE_MAX(self):
row = _load_row()
if row is not None and row.shangjia_paifa_jiage_max is not None:
return row.shangjia_paifa_jiage_max
return Decimal('10000')
wx_cfg = WxConfig()