Merge branch 'main' of https://git.opencomputing.cn/yumoqing/kboss
This commit is contained in:
commit
5949af9ca2
@ -143,7 +143,14 @@ async def registerUser(ns):
|
|||||||
ns['parentid'] = org[0]['id']
|
ns['parentid'] = org[0]['id']
|
||||||
|
|
||||||
# 新增用户机构信息
|
# 新增用户机构信息
|
||||||
await sor.C('organization', ns)
|
ns_org = {
|
||||||
|
'id': ns['id'],
|
||||||
|
'orgname': ns['username'],
|
||||||
|
'parentid': ns['parentid'],
|
||||||
|
'org_type': ns['org_type'],
|
||||||
|
'contactor_phone': ns.get('mobile'),
|
||||||
|
}
|
||||||
|
await sor.C('organization', ns_org)
|
||||||
|
|
||||||
# 生成用户userid
|
# 生成用户userid
|
||||||
ns['id'] = uuid()
|
ns['id'] = uuid()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user