From e5f710cf46a26199712ae9024c4ed132b14c8b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=8B=A5?= Date: Mon, 9 Mar 2026 04:57:35 +0800 Subject: [PATCH] =?UTF-8?q?sync:=20soul-api=20=E6=8E=A5=E5=8F=A3=E9=80=BB?= =?UTF-8?q?=E8=BE=91=20|=20=E5=8E=9F=E5=9B=A0:=20=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soul-api/internal/handler/db_book.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soul-api/internal/handler/db_book.go b/soul-api/internal/handler/db_book.go index bcb69729..b407bbf2 100644 --- a/soul-api/internal/handler/db_book.go +++ b/soul-api/internal/handler/db_book.go @@ -441,6 +441,9 @@ func DBBookAction(c *gin.Context) { if body.EditionPremium != nil { updates["edition_premium"] = *body.EditionPremium } + if body.HotScore != nil { + updates["hot_score_override"] = *body.HotScore + } err := db.Model(&model.Chapter{}).Where("id = ?", body.ID).Updates(updates).Error if err != nil { c.JSON(http.StatusOK, gin.H{"success": false, "error": err.Error()})