Explorar o código

fix: modify_institution_controller中未定义变量institution_id

alphah hai 2 semanas
pai
achega
59eaf7f516

+ 1 - 1
backend/app/plugin/module_payment/expense/institution/controller.py

@@ -316,7 +316,7 @@ async def modify_institution_controller(
             )
             old_ids = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
         except Exception:
-            log.warning(f"查询旧scope失败,将全量覆盖: institution_id={institution_id}")
+            log.warning(f"查询旧scope失败,将全量覆盖: institution_id={data.get('institution_id', '')}")
 
         new_ids_raw = data.get("scope_owner_id_list") or []
         new_ids = [str(i) for i in new_ids_raw if i is not None and str(i).strip()]