csx 3 years ago
parent
commit
8b67f54eba
3 changed files with 3 additions and 4 deletions
  1. 2 2
      conf/app.conf
  2. 1 1
      service/bl_service.go
  3. 0 1
      service/db.go

+ 2 - 2
conf/app.conf View File

@@ -32,8 +32,8 @@ front_end_domain = "https://xt.kuyicloud.com/#"
32 32
 
33 33
 blmysqlhost = localhost
34 34
 blmysqlport = 3306
35
-blmysqluser = lindialy
36
-blmysqlpass = 123456
35
+blmysqluser = root
36
+blmysqlpass = 12345678
37 37
 blmysqlname = kuyicloud
38 38
 
39 39
 

+ 1 - 1
service/bl_service.go View File

@@ -128,7 +128,7 @@ type CmSample struct {
128 128
 }
129 129
 
130 130
 func (CmSample) TableName() string {
131
-	return "v_cm_sample"
131
+	return "cm_sample"
132 132
 }
133 133
 
134 134
 type CmLisitems struct {

+ 0 - 1
service/db.go View File

@@ -177,7 +177,6 @@ func ConnectDB() {
177 177
 	blDb, err = gorm.Open("mysql", bldsn)
178 178
 	if err != nil {
179 179
 		fmt.Println("12344")
180
-
181 180
 		fmt.Println(err)
182 181
 	}
183 182
 	blDb.DB().SetMaxIdleConns(10)