mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +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 {
|
||||
if !d.IsDir() {
|
||||
relpath := path + "/" + d.Name()
|
||||
fullpath := setupath + "/" + relpath
|
||||
logrus.Debugln("[nsetu] read", fullpath)
|
||||
f, e := os.ReadFile(fullpath)
|
||||
logrus.Debugln("[nsetu] read", relpath)
|
||||
f, e := fs.ReadFile(root, relpath)
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user