This commit is contained in:
yumoqing 2026-03-20 15:57:57 +08:00
parent 71e17ad494
commit 703c266fd2

View File

@ -17,11 +17,11 @@ async def add_roleperm(sor, roleid, permid):
}
recs = await sor.R('rolepermission', ns.copy())
if recs:
print(f'{role}, {permid} 已经存在')
print(f'{roleid}, {permid} 已经存在')
return
ns['id'] = getID()
await sor.C('rolepermission', ns)
print(f'{role}, {permid} perm add')
print(f'{roleid}, {permid} perm add')
return
async def main():