This commit is contained in:
1-6
2023-07-25 17:34:30 +08:00
parent 17006a989d
commit 31ae3384d0
4 changed files with 32 additions and 21 deletions
-11
View File
@@ -6,7 +6,6 @@ import (
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"time"
@@ -195,16 +194,6 @@ func init() {
for bk, v := range updates {
ar := strings.SplitN(bk, ".", 2)
if len(ar) == 2 {
if vv, ok := plugins_id.Load(ar[1]); ok {
filename := vv.(string)
vs := fmt.Sprint(v)
if vs == "" {
os.RemoveAll(filepath.Dir(filename))
} else {
os.WriteFile(filename, []byte(vs), 0755)
}
continue
}
msg, changed, err := SetBucketKeyValue(MakeBucket(ar[0]), ar[1], v)
if msg != "" {
messages[bk] = msg