fix: 修復路徑錯誤問題

This commit is contained in:
2025-01-27 16:37:02 +08:00
parent be2e45c4fc
commit 8b20764404

View File

@@ -9,8 +9,7 @@ const path: string = YAML.parse(fs.readFileSync('../config.yml', 'utf-8')).path
fs.watch(path, async function (event, filename) {
if (!(filename && event === 'change')) return
const jpath: string = `./${filename}`
const jpath: string = `${path}/${filename}`
const requestData: IrequestData = JSON.parse(fs.readFileSync(jpath).toString())
if (requestData.Processed === true) return
const method: any = requestData.Request.Mode.toUpperCase()