add 消息类型&API

This commit is contained in:
jxxghp
2023-07-13 20:34:40 +08:00
parent 57b559c6d7
commit cdeb601528
8 changed files with 103 additions and 18 deletions

View File

@ -60,8 +60,8 @@ class ChainBase(AbstractSingleton, metaclass=Singleton):
if isinstance(temp, list):
result.extend(temp)
else:
# 返回结果非列表也非空,则执行一次后跳出
break
# 返回结果非列表也非空,则继续执行下一模块
continue
except Exception as err:
logger.error(f"运行模块 {method} 出错:{module.__class__.__name__} - {err}\n{traceback.print_exc()}")
return result