Parcourir la source

fix(account): sync-all 日期格式改为 yyyyMMdd

alphah il y a 2 semaines
Parent
commit
895052443f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      backend/app/plugin/module_payment/account/service.py

+ 2 - 2
backend/app/plugin/module_payment/account/service.py

@@ -875,9 +875,9 @@ class AccountService:
 
         now = datetime.now()
         if not end_date:
-            end_date = now.strftime("%Y-%m-%d")
+            end_date = now.strftime("%Y%m%d")
         if not start_date:
-            start_date = (now - timedelta(days=90)).strftime("%Y-%m-%d")
+            start_date = (now - timedelta(days=90)).strftime("%Y%m%d")
 
         # 检查 consume.detail.batchquery 是否可用
         _can_batch = False