This commit is contained in:
wintsa committed 2024-04-08 17:41:05 +08:00
1 parent 1dde3de9fa
commit 57fe832e38
21 files changed
+7917 -10930

No files matched your search

+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 {