forked from erp-dev/erp
feat: settlement first api beta
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
"""日结模块信号处理函数"""
|
||||
import logging
|
||||
|
||||
from .models import NotificationChannelEnum
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -22,7 +24,7 @@ def on_daily_settlement_completed(sender, **kwargs):
|
||||
return
|
||||
|
||||
# 根据通知渠道处理(目前只有企业微信)
|
||||
if config.notification_channel == config.NotificationChannelEnum.WECOM:
|
||||
if config.notification_channel == NotificationChannelEnum.WECOM:
|
||||
logger.info(
|
||||
f'[settlement.handlers] 商户 {merchant.id} 日结完成,'
|
||||
f'状态={status}, 模块={modules}, 错误={errors}, '
|
||||
|
||||
Reference in New Issue
Block a user