feat: 商家派单金额限额改为后台可配置,派单接口读取XcxSysPeizhi
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user