refactor: streamline price calculation in RelaySwapFace and RelayMidjourneySubmit functions

This commit is contained in:
CaIon
2025-06-22 17:52:48 +08:00
parent e5fe592953
commit 32366d1e1b
12 changed files with 97 additions and 108 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func Distribute() func(c *gin.Context) {
}
userGroup = tokenGroup
}
c.Set("group", userGroup)
c.Set(constant.ContextKeyUsingGroup, userGroup)
if ok {
id, err := strconv.Atoi(channelId.(string))
if err != nil {