|
|
@@ -127,16 +127,17 @@ async def create_institution_controller(
|
|
|
mapped_adapter = ADAPTER_TYPE_MAP.get(adapter_type, adapter_type)
|
|
|
scope_data = {
|
|
|
"adapter_type": mapped_adapter,
|
|
|
- "owner_type": data.get("scope_owner_type", "ENTERPRISE_PAY_UID"),
|
|
|
+ "owner_type": data.get("scope_owner_type", "EMPLOYEE"),
|
|
|
"add_owner_id_list": data.get("scope_owner_id_list"),
|
|
|
}
|
|
|
# 全体员工时把 scope 写入创建请求(避免默认无scope导致支付宝后台不可操作)
|
|
|
if adapter_type == "all":
|
|
|
data["institution_scope_info"] = {
|
|
|
"adapter_type": "ALL",
|
|
|
- "owner_type": "ENTERPRISE_PAY_UID",
|
|
|
+ "owner_type": "EMPLOYEE",
|
|
|
}
|
|
|
|
|
|
+
|
|
|
# 解析发放规则数据
|
|
|
issuerule_data = None
|
|
|
if data.get("grant_mode") == "period":
|
|
|
@@ -328,7 +329,7 @@ async def modify_institution_controller(
|
|
|
scope_info = {
|
|
|
"enterprise_id": enterprise_id,
|
|
|
"adapter_type": new_adapter,
|
|
|
- "owner_type": "ENTERPRISE_PAY_UID",
|
|
|
+ "owner_type": "EMPLOYEE",
|
|
|
}
|
|
|
if add_ids:
|
|
|
scope_info["add_owner_id_list"] = add_ids
|