2025-03-18 08:46:50 +08:00

19 lines
693 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from django.core.management.base import BaseCommand
from utils.common import ast_convert
from mysystem.models import Users
import datetime
from apps.lyTiktokUnion.tools.douyin import allianceColonelGoodsSync
import logging
logger = logging.getLogger(__name__)
"""
同步团长活动商品同步(每天执行一次)
"""
class Command(BaseCommand):
def handle(self, *args, **options):
isok = allianceColonelGoodsSync()
if isok:
logger.info("自动同步团长活动商品同步成功(每天执行一次),执行结果OK")
logger.error("自动同步团长活动商品同步失败(每天执行一次),执行结果FAIL")