Переглянути джерело

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

alphah 2 тижнів тому
батько
коміт
895052443f
1 змінених файлів з 2 додано та 2 видалено
  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