refactor: 完成会话管理相关指令

This commit is contained in:
Rock Chin
2023-03-28 13:47:45 +00:00
parent 0b0271a1f4
commit 4055d3542b
9 changed files with 362 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import copy
import pkgutil
import traceback
import types
import json
__command_list__ = {}
@@ -257,7 +258,7 @@ def execute(context: Context) -> list:
while True:
try:
logging.debug('执行指令: {}'.format(path))
node = node[path]
node = __command_list__[path]
# 检查权限
if ctx.privilege < node['privilege']: