zhamao-robot / zhamao-framework

协程、高性能、灵活的聊天机器人 & Web 开发框架(炸毛框架)
https://framework.zhamao.xin
Apache License 2.0
158 stars 26 forks source link

@OnTask()注解中无法使用mysql组件 #270

Closed YiwanGi closed 1 year ago

YiwanGi commented 1 year ago

受影响版本

2.8.5

描述

代码执行到mysql查询后被阻断 框架无日志提示 使用try捕获到以下内容提示

Call to a member function getConnection() on null

复现步骤

@OnTask()注解中使用mysql语句查询

解决方案

No response

附加信息

No response

sunxyw commented 1 year ago

fixed in #271