This commit is contained in:
1-6
2023-08-09 10:52:34 +08:00
parent 70bad0cc52
commit 2b19690add
12 changed files with 67 additions and 109 deletions
+6 -7
View File
@@ -2,7 +2,6 @@ package core
import (
"errors"
"fmt"
"io"
"net/http"
"os"
@@ -372,12 +371,12 @@ func initPlugins() {
if !apd {
AddCommand([]*common.Function{f})
}
if f.UUID != "" && f.Public {
go func() {
os.WriteFile(fmt.Sprintf("%s/%s.js", plugin_download_file, f.UUID), []byte(publicScript(plugins.GetString(f.UUID))), 0666)
os.WriteFile(plugin_path+"list.json", utils.JsonMarshal(GetPublicResponse()), 0666)
}()
}
// if f.UUID != "" && f.Public {
// go func() {
// os.WriteFile(fmt.Sprintf("%s/%s.js", plugin_download_file, f.UUID), []byte(publicScript(plugins.GetString(f.UUID))), 0666)
// os.WriteFile(plugin_path+"list.json", utils.JsonMarshal(GetPublicResponse()), 0666)
// }()
// }
return
})
}