This commit is contained in:
2024-04-08 17:41:05 +08:00
parent 1dde3de9fa
commit 57fe832e38
21 changed files with 7917 additions and 10930 deletions
+2
View File
@@ -2,6 +2,7 @@ package models
import (
"encoding/json"
"fmt"
"gorm.io/gorm"
)
@@ -39,6 +40,7 @@ func (m *ModuleConfig) Save(db *gorm.DB) error {
} else {
m.ValueJson = string(jb)
}
fmt.Println("检查", m.UserId)
// 保存操作
if err := db.First(&ModuleConfig{}, "user_id=? AND name=?", m.UserId, m.Name).Error; err != nil {