From 4ef8ed3145b72eab9a06347a1189bd3e60bd75c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E5=A4=9C?= Date: Mon, 7 Oct 2024 11:52:32 +0800 Subject: [PATCH] 6.1.122 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐞 修正 HTTP通道資料結構異常的問題 --- TREM.Electron/js/earthquake.js | 7 +++++++ TREM.Electron/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/TREM.Electron/js/earthquake.js b/TREM.Electron/js/earthquake.js index ac864149..fd4b4d01 100644 --- a/TREM.Electron/js/earthquake.js +++ b/TREM.Electron/js/earthquake.js @@ -4505,6 +4505,13 @@ function freertsget(rts_key_verify_f = false) { ans.Time = rts_ws_timestamp; rts_response = ans; clearTimeout(timer); + }).catch((err) => { + if (rts_url == 0) + rts_url = 1; + else + rts_url = 0; + log(err, 3, "server", "rts-clock"); + clearTimeout(timer); }); } else { if (rts_url == 0) diff --git a/TREM.Electron/package.json b/TREM.Electron/package.json index 96ed118c..8880312f 100644 --- a/TREM.Electron/package.json +++ b/TREM.Electron/package.json @@ -1,6 +1,6 @@ { "name": "tremv", - "version": "6.1.121", + "version": "6.1.122", "description": "Taiwan Real-time Earthquake Monitoring Variety ( 臺灣即時地震監測變體 )", "main": "main.js", "homepage": "https://exptech.com.tw/",