This commit is contained in:
wangchuxiao
2022-08-21 22:28:10 +08:00
parent d57729d3d7
commit 782ad07940
2 changed files with 7 additions and 3 deletions
@@ -7,7 +7,7 @@ func SetClientInitConfig(m map[string]interface{}) error {
if result.Error != nil {
return result.Error
}
if result.RowsAffected == 1 {
if result.RowsAffected == 0 {
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.ClientInitConfig{}).Create(m).Error
return err
}