自动化脚本

This commit is contained in:
hahwu 2026-01-21 11:29:12 +08:00
parent b6c76aab4b
commit e9e76ee7c6
2 changed files with 2 additions and 2 deletions

View File

@ -308,7 +308,7 @@
"out_file": "LimitedTimeEventFast.json",
"key": "Id",
"sheet_name" :"Fast",
"fields" :["Times", "Min", "Max","Items"]
"fields" :["EnergyValue", "Items"]
},
{
"in_file": "LimitedTimeEvent.xlsx",

View File

@ -2,7 +2,7 @@ import os
import json
import openpyxl
import csv
# Copy-Item -Path "d:\Github\docs\tool\config\*" -Destination "D:\Github\pet_home_server\src\server\gamedata\config\" -Force -Recurse
current_dir = os.getcwd()
# 读取配置文件
cfg_path = os.path.join(current_dir, 'tool/cfg/cfg_xlsx.json')