fix: 系统配置数据类型增强

This commit is contained in:
tbphp
2025-07-03 20:31:33 +08:00
parent 45337d9b80
commit f07fae50ec
2 changed files with 63 additions and 44 deletions

View File

@@ -38,7 +38,7 @@ func GetSettings(c *gin.Context) {
// It receives a key-value JSON object and updates system settings.
// After updating, it triggers a configuration reload.
func UpdateSettings(c *gin.Context) {
var settingsMap map[string]string
var settingsMap map[string]any
if err := c.ShouldBindJSON(&settingsMap); err != nil {
response.BadRequest(c, "Invalid request body")
return