Ver código fonte

fix: 修复转账场景判断

gatsby 3 semanas atrás
pai
commit
cd850a3f2c

+ 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)