誤字を修正・デバッグ表示の--線の位置を変更・v4.1.2

This commit is contained in:
2025-07-04 21:55:13 +09:00
parent a96c3f0e4f
commit 678f4aa1b1
4 changed files with 18 additions and 15 deletions
+3 -3
View File
@@ -63,6 +63,8 @@ class P2PEarthquakeClient {
}
private handleMessage(message: any): void {
console.log("----------------");
switch (message.code) {
case 551: // 地震情報
console.log("地震情報を受信しました");
@@ -77,7 +79,6 @@ class P2PEarthquakeClient {
this.executeEventFunc(message);
break;
default:
console.log("----------------");
console.log(`未対応の情報を受信しました(コード: ${message.code})`);
break;
}
@@ -145,7 +146,6 @@ async function areaMap(): Promise<Record<number, string>> {
// 情報受信
async function event(earthquakeInfo: any): Promise<void> {
console.log("----------------");
console.log(`受信データ:${JSON.stringify(earthquakeInfo)}`);
// ----処理----
@@ -245,7 +245,7 @@ async function event(earthquakeInfo: any): Promise<void> {
// 最大震度
let maxScale: string = "最大深度:";
if (earthquakeInfo.earthquake.maxScale < config.earthquake.maxScaleMax) {
if (earthquakeInfo.earthquake.maxScale < config.earthquake.maxScaleMin) {
console.log("最低震度に満たしていないため投稿されませんでした");
return;
}