feat: stable-diffusion refactored, replace websocket api with sdapi

This commit is contained in:
RockYang
2024-03-26 18:23:08 +08:00
parent 49b5906bc7
commit 342b76f666
11 changed files with 191 additions and 335 deletions

View File

@@ -175,6 +175,12 @@ func main() {
// Stable Diffusion 机器人
fx.Provide(sd.NewServicePool),
fx.Invoke(func(pool *sd.ServicePool) {
if pool.HasAvailableService() {
pool.CheckTaskNotify()
pool.CheckTaskStatus()
}
}),
fx.Provide(payment.NewAlipayService),
fx.Provide(payment.NewHuPiPay),