mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-06 17:23:42 +08:00
docs: export database, update readme doc, remove useless configs for alipay
This commit is contained in:
10
api/main.go
10
api/main.go
@@ -195,10 +195,12 @@ func main() {
|
||||
fx.Provide(payment.NewAlipayService),
|
||||
fx.Provide(service.NewSnowflake),
|
||||
fx.Provide(service.NewXXLJobExecutor),
|
||||
fx.Invoke(func(exec *service.XXLJobExecutor) {
|
||||
go func() {
|
||||
log.Fatal(exec.Run())
|
||||
}()
|
||||
fx.Invoke(func(exec *service.XXLJobExecutor, config *types.AppConfig) {
|
||||
if config.XXLConfig.Enabled {
|
||||
go func() {
|
||||
log.Fatal(exec.Run())
|
||||
}()
|
||||
}
|
||||
}),
|
||||
|
||||
// 注册路由
|
||||
|
||||
Reference in New Issue
Block a user