async def computing_voucher_delete(ns={}): """ 已经成功发放的算力券不能删除 """ db = DBPools() async with db.sqlorContext('kboss') as sor: try: await sor.U('computing_voucher', {'id': ns.get('id'), 'del_flg': '1'}) return { 'status': True, 'msg': '算力券删除成功' } except Exception as e: return { 'status': False, 'msg': '算力券删除有误', 'error': str(e) } ret = await computing_voucher_delete(params_kw) return ret