This commit is contained in:
aozhiwei 2024-06-26 13:50:30 +08:00
parent 9ab51b1f24
commit 791d3cabf6

View File

@ -40,6 +40,16 @@ func (this *app) Update() {
} }
func (this *app) registerDataSources() { func (this *app) registerDataSources() {
f5.GetGoStyleDb().RegisterDataSource(
constant.MAIL_DB,
mt.Table.MailDb.GetById(0).GetHost(),
mt.Table.MailDb.GetById(0).GetPort(),
mt.Table.MailDb.GetById(0).GetUser(),
mt.Table.MailDb.GetById(0).GetPasswd(),
mt.Table.MailDb.GetById(0).GetDatabase(),
30)
f5.GetGoStyleDb().RegisterDataSource( f5.GetGoStyleDb().RegisterDataSource(
constant.GAME_DB, constant.GAME_DB,
mt.Table.GameDb.GetById(0).GetHost(), mt.Table.GameDb.GetById(0).GetHost(),