fix: 修复数据库连接地址

This commit is contained in:
chenwj113 2023-05-27 17:51:00 +08:00
parent 4b8aaacca6
commit 854f4e3dd4
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
var DB *gorm.DB
func init() {
dsn := "root:123456@(127.0.0.1:3306)/weixin?charset=utf8mb4&parseTime=True&loc=Local"
dsn := "root:Chenweijia113!@(172.17.0.1:3306)/weixin?charset=utf8mb4&parseTime=True&loc=Local"
var err error
DB, err = gorm.Open(mysql.Open(dsn), &gorm.Config{})
if err != nil {