async def updateuserpassword(ns): """管理员修改密码""" db = DBPools() async with db.sqlorContext('kboss') as sor: try: ns['password'] = password_encode(ns['password']) await sor.U('users',ns) return {'status': True, 'msg': '成功'} except: return {'status': False, 'msg': '失败'} ret = await updateuserpassword(params_kw) return ret