19 lines
693 B
Python
19 lines
693 B
Python
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")
|
||
|