소스 검색

fix(transfer):success or fail

gatsby 1 주 전
부모
커밋
0cbf2792e4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      backend/app/plugin/module_payment/account/service.py

+ 1 - 0
backend/app/plugin/module_payment/account/service.py

@@ -373,6 +373,7 @@ class AccountService:
                     new_auth = AuthSchema(db=_session, check_data_scope=False)
                     # 保持 tenant_id
                     new_auth.tenant_id = getattr(auth, "tenant_id", None)
+                    transfer_data["status"]="FAIL"
                     await TransferCRUD(new_auth).create(transfer_data)
 
             raise CustomException(msg=f"转账失败: {hint}")