sage/wwwroot/tenant_brand_save.dspy

14 lines
451 B
Plaintext

# 保存租户品牌设置
userorgid = await get_userorgid()
orgname = params_kw.get('orgname', '')
iconid = params_kw.get('iconid', '')
env = request._run_ns
async with get_sor_context(env, 'sage') as sor:
await sor.U('organization', {'id': userorgid, 'orgname': orgname, 'iconid': iconid})
result = {
"widgettype": "Message",
"options": {"title": "成功", "message": "品牌设置已保存,刷新页面生效", "type": "success"}
}