mirror of
https://github.com/linux-do/new-api.git
synced 2025-12-26 08:35:58 +08:00
修复余额不足邮件提醒bug
This commit is contained in:
@@ -359,7 +359,7 @@ func relayMidjourneySubmit(c *gin.Context, relayMode int) *MidjourneyResponse {
|
||||
|
||||
defer func(ctx context.Context) {
|
||||
if consumeQuota {
|
||||
err := model.PostConsumeTokenQuota(tokenId, quota)
|
||||
err := model.PostConsumeTokenQuota(tokenId, userQuota, quota, 0)
|
||||
if err != nil {
|
||||
common.SysError("error consuming token remain quota: " + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user