fix: 修改日志文件名为 log.txt,增加停止运行标志以避免主流程阻塞,并优化 DockerContainer 初始化逻辑以确保服务正常运行

This commit is contained in:
lixiangwuxian
2025-03-29 14:50:34 +08:00
parent d84506d440
commit b4e0ae21cb
3 changed files with 25 additions and 5 deletions

View File

@@ -30,3 +30,7 @@ func GetDB() *sqlx.DB {
func GetTran() (*sqlx.Tx, error) {
return db.Beginx()
}
func CloseDB() {
db.Close()
}