Merge branch 'wp' into dev

This commit is contained in:
workabee 2024-09-10 11:17:57 +08:00
commit eae5849a3b

View File

@ -38,7 +38,7 @@ func loadMysqlConn(conn string) *gorm.DB {
sqlDB.SetMaxIdleConns(20) //设置连接池,空闲
sqlDB.SetMaxOpenConns(100) //打开
sqlDB.SetConnMaxLifetime(time.Second * 30)
err = db.AutoMigrate(model.RegisterRecord{}) //自迁移
err = db.AutoMigrate(&model.RegisterRecord{}) //自迁移
if err != nil {
return nil