fix: get_organizations/get_upapps返回providerid_text/upappid_text格式匹配alters字段名

This commit is contained in:
yumoqing 2026-05-31 19:56:35 +08:00
parent 93e3f17a67
commit a228095220
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ try:
)
if orgs:
for r in orgs:
result.append({'value': str(r.id), 'text': r.orgname or ''})
result.append({'providerid': str(r.id), 'providerid_text': r.orgname or ''})
except Exception as e:
debug(f'get_organizations error: {e}')

View File

@ -9,7 +9,7 @@ try:
)
if apps:
for r in apps:
result.append({'value': str(r.id), 'text': r.name or ''})
result.append({'upappid': str(r.id), 'upappid_text': r.name or ''})
except Exception as e:
debug(f'get_upapps error: {e}')