This commit is contained in:
yumoqing 2025-07-28 16:44:09 +08:00
parent aa03d6959e
commit 5870ed6a9d

View File

@ -3,9 +3,9 @@ db = DBPools()
dbname = get_module_dbname('rbac') dbname = get_module_dbname('rbac')
async with db.sqlorContext(dbname) as sor: async with db.sqlorContext(dbname) as sor:
orgid = await register_user(sor, params_kw) orgid = await register_user(sor, params_kw)
openCustomerAccounts = globals().get('openCustomerAccounts')
if get_owner_orgid and openCustomerAccounts: if get_owner_orgid and openCustomerAccounts:
ownerid = await get_owner_orgid(sor, orgid) ownerid = await get_owner_orgid(sor, orgid)
openCustomerAccounts = globals().get('openCustomerAccounts')
if openCustomerAccounts: if openCustomerAccounts:
await openCustomerAccounts(sor, ownerid, orgid) await openCustomerAccounts(sor, ownerid, orgid)
return UiMessage(title="Success", message="register success") return UiMessage(title="Success", message="register success")