加入 连接状态判断 控制台日志输出
This commit is contained in:
@@ -10,6 +10,10 @@ class MongoDb implements DataBase {
|
||||
connect(false);
|
||||
}
|
||||
|
||||
bool isConnected() {
|
||||
return db.isConnected;
|
||||
}
|
||||
|
||||
void connect(reconnect) {
|
||||
if (reconnect) {
|
||||
print("尝试重连MongoDb");
|
||||
|
||||
Reference in New Issue
Block a user