mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 18:23:45 +08:00
feat: replace http polling with webscoket notify in sd image page
This commit is contained in:
@@ -310,4 +310,7 @@ func (s *Service) callback(data CBReq) {
|
||||
// restore img_calls
|
||||
s.db.Model(&model.User{}).Where("id = ? AND img_calls > 0", data.UserId).UpdateColumn("img_calls", gorm.Expr("img_calls + ?", 1))
|
||||
}
|
||||
|
||||
// 发送更新状态信号
|
||||
s.notifyQueue.RPush(data.UserId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user