huwei 1 hari lalu
induk
melakukan
233be248cd

+ 45 - 0
server/internal/jsonc/conv/legend.go

@@ -0,0 +1,45 @@
+package conv
+
+import (
+	"encoding/json"
+	"gadmin/package/gmdata"
+	"gadmin/utility"
+	"github.com/sirupsen/logrus"
+)
+
+var Legend = new(cLegend)
+
+type cLegend struct {
+	version string
+	lst     []*gmdata.Rune
+}
+
+func (j *cLegend) Extract(version string) {
+	logrus.Info("cItem Extract...")
+	j.setVersion(version).convert().save()
+}
+
+func (j *cLegend) setVersion(version string) *cLegend {
+	j.version = version
+	return j
+}
+
+func (j *cLegend) convert() *cLegend {
+	b, err := GetUrlBody(j.version, "Legend.json")
+	if err != nil {
+		logrus.Fatalf("GetUrlBody err:%+v", err)
+	}
+
+	var list []*gmdata.Rune
+	if err = json.Unmarshal(b, &list); err != nil {
+		logrus.Fatalf("err=%v", err)
+	}
+
+	j.lst = list
+	return j
+}
+
+func (j *cLegend) save() {
+	filePath := utility.LocalJsonPath(j.version, "legend.json")
+	SaveJsonPath(filePath, j.lst)
+}

+ 1 - 1
server/local.env

@@ -102,7 +102,7 @@ GRAVE_PATH="./manifest/graveserver" # 配置读取路径
 GRAVE_GM="${GRAVE_PATH}/gm_local222.json" # gm配置
 
 # 资源配置
-JSON_VERSION="v0.9" # json
+JSON_VERSION="v0.12" # json
 JSON_PATH="./resource/public/json" # json路径
 BACKUP_PATH="./resource/public/backup" # 备份路径
 DOWNLOAD_BACKUP_PATH="${BACKUP_PATH}/download" # 下载备份数据后的保存路径,一般填obs路径

+ 2 - 0
web/src/convert/material/map.ts

@@ -17,4 +17,6 @@ export const typeMaps = [
   { value: 16, label: '体力类型(16)' },
   { value: 17, label: '杂类(17)' },
   { value: 18, label: '经验(18)' },
+  { value: 19, label: '聊天动态表情(19)' },
+  { value: 20, label: '称号道具(20)' },
 ];

+ 1 - 1
web/src/views/account/accountList/info.vue

@@ -21,7 +21,7 @@
           type="card"
           class="card-tabs"
           default-value="baseInfo"
-          size="large"
+          size="small"
           animated
           tab-style="min-width: 80px;"
           style="margin: 0 -4px"