kboss/b/coer_old/mycustomerdput.dspy
2025-07-16 14:27:17 +08:00

16 lines
572 B
Plaintext

async def mycustomerdput(ns):
"""修改个人中心数据"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
if ns:
if ns.get('password'):
ns['password'] = password_encode(ns['password'])
await sor.U('users', ns)
# 暂缓代码 这里判断是否为管理员,如果是可以修改机构资料
# ns['id'] = ns['orgid']
# await sor.U('organization', ns)
return {'status': True, 'msg': '修改成功'}
ret = await mycustomerdput(params_kw)
return ret