mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
refactor: 消息模块调整 & 样式优化
This commit is contained in:
@@ -2,7 +2,7 @@ package dbi
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"mayfly-go/pkg/biz"
|
||||
"mayfly-go/pkg/logx"
|
||||
"mayfly-go/pkg/utils/collx"
|
||||
"mayfly-go/pkg/utils/stringx"
|
||||
"strings"
|
||||
@@ -98,7 +98,10 @@ func GetLocalSql(file, key string) string {
|
||||
}
|
||||
|
||||
bytes, err := metasql.ReadFile(file)
|
||||
biz.ErrIsNilAppendErr(err, "failed to get the contents of the sql meta file: %s")
|
||||
if err != nil {
|
||||
logx.Error("failed to read sql metadata file: %s, err: %v", file, err)
|
||||
return ""
|
||||
}
|
||||
allSql := string(bytes)
|
||||
|
||||
sqls := strings.Split(allSql, "---------------------------------------")
|
||||
|
||||
Reference in New Issue
Block a user