zhangjie 4 yıl önce
ebeveyn
işleme
e1d5d723d6
3 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 7 0
      README.md
  2. 1 1
      config.sample.json
  3. BIN
      extra/database/org.rdb

+ 7 - 0
README.md

@@ -111,3 +111,10 @@ const extraPath =
   }
 }
 ```
+
+## config.json 配置说明
+
+- 根目录下会有一个`config.sample.json`文件,当需要设置配置参数时,可以复制一份,保存为`config.json`文件。
+- 系统内部预设了一组 config 参数,当根目录`config.json`文件中的参数有缺失时,默认使用预设 config 参数。
+- `input`默认为`/stores/in/`
+- `compressRate`为图片压缩参数,当`compressRate`的值不存在,或者大于 100,或者小于 1 时,默认为 100;实际使用时一般配置 80,此时图片大小会减小约 75%;

+ 1 - 1
config.sample.json

@@ -1,5 +1,5 @@
 {
   "domain": "http://localhost:9000",
   "input": "",
-  "compressRate": 1
+  "compressRate": 100
 }

BIN
extra/database/org.rdb