mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
✏️ 修正 本地 setu 插件
This commit is contained in:
parent
cdd1dc68da
commit
c553248cf4
@ -99,9 +99,8 @@ func scanclass(root fs.FS, path, clsn string) error {
|
|||||||
for _, d := range ds {
|
for _, d := range ds {
|
||||||
if !d.IsDir() {
|
if !d.IsDir() {
|
||||||
relpath := path + "/" + d.Name()
|
relpath := path + "/" + d.Name()
|
||||||
fullpath := setupath + "/" + relpath
|
logrus.Debugln("[nsetu] read", relpath)
|
||||||
logrus.Debugln("[nsetu] read", fullpath)
|
f, e := fs.ReadFile(root, relpath)
|
||||||
f, e := os.ReadFile(fullpath)
|
|
||||||
if e != nil {
|
if e != nil {
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user