update
This commit is contained in:
@@ -48,7 +48,7 @@ func Instance(key ...string) *gorm.DB {
|
|||||||
|
|
||||||
instance, ok := instanceMap[key0]
|
instance, ok := instanceMap[key0]
|
||||||
if !ok {
|
if !ok {
|
||||||
panic(fmt.Errorf("%s not config", key))
|
panic(fmt.Errorf("mysql %s not config", key0))
|
||||||
}
|
}
|
||||||
return instance
|
return instance
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ func Instance(key ...string) *MyRedis {
|
|||||||
|
|
||||||
instance, ok := instanceMap[key0]
|
instance, ok := instanceMap[key0]
|
||||||
if !ok {
|
if !ok {
|
||||||
panic(fmt.Errorf("%s not config", key))
|
panic(fmt.Errorf("redis %s not config", key0))
|
||||||
}
|
}
|
||||||
return instance
|
return instance
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user