fixed bug for dalle3 task not decrease power

This commit is contained in:
RockYang
2024-05-10 11:18:37 +08:00
parent 3eef9a836b
commit 5d4f40c004
3 changed files with 21 additions and 2 deletions

View File

@@ -92,8 +92,7 @@ func (h *DallJobHandler) preCheck(c *gin.Context) bool {
resp.NotAuth(c)
return false
}
if user.Power < h.App.SysConfig.SdPower {
if user.Power < h.App.SysConfig.DallPower {
resp.ERROR(c, "当前用户剩余算力不足以完成本次绘画!")
return false
}