소스 검색

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