Explorar o código

fix: 修复转账场景判断

gatsby hai 3 semanas
pai
achega
cd850a3f2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/app/plugin/module_payment/account/service.py

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

@@ -514,7 +514,7 @@ class AccountService:
         for v in list(result.account_list or []):
             if not hasattr(v, "account_book_id"):
                 continue
-            if not hasattr(v, "scene") and v['scene'] != "B2B_TRANS":
+            if not hasattr(v, "scene") or v.scene != "B2B_TRANS":
                 continue
 
             account = FundAccountApiDTO.to_alipay_dict(v)