From 692b812e58b185a501de167d1345c14f84bdb141 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Tue, 20 Oct 2026 20:18:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(schema):=20=E8=87=AA=E6=A3=80=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E5=B8=B8=E9=87=8F=E9=A1=B9=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=20Team.NeutralId=20=E8=AF=AF=E6=8A=A5=E5=A4=B1=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3dtank.com/play/static/js/unpacked/hornet_bundle.js | 1 + 3dtank_bundle.js | 1 + tools/hornet_schema.js | 1 + 3 files changed, 3 insertions(+) diff --git a/3dtank.com/play/static/js/unpacked/hornet_bundle.js b/3dtank.com/play/static/js/unpacked/hornet_bundle.js index fe749cf..2442f2c 100644 --- a/3dtank.com/play/static/js/unpacked/hornet_bundle.js +++ b/3dtank.com/play/static/js/unpacked/hornet_bundle.js @@ -381,6 +381,7 @@ var Out = { Ok: [], Missing: [] }; Object.keys(Fields).forEach(function (Key) { if (Prefix && Key.indexOf(Prefix + '.') !== 0) return; + if (typeof Fields[Key] !== 'string') return; // 常量项(如 Team.NeutralId)不参与自检 var V = Get(Target, Key); if (V === undefined) Out.Missing.push(Key + ' → ' + Fields[Key]); else Out.Ok.push(Key + ' → ' + Fields[Key]); diff --git a/3dtank_bundle.js b/3dtank_bundle.js index fe749cf..2442f2c 100644 --- a/3dtank_bundle.js +++ b/3dtank_bundle.js @@ -381,6 +381,7 @@ var Out = { Ok: [], Missing: [] }; Object.keys(Fields).forEach(function (Key) { if (Prefix && Key.indexOf(Prefix + '.') !== 0) return; + if (typeof Fields[Key] !== 'string') return; // 常量项(如 Team.NeutralId)不参与自检 var V = Get(Target, Key); if (V === undefined) Out.Missing.push(Key + ' → ' + Fields[Key]); else Out.Ok.push(Key + ' → ' + Fields[Key]); diff --git a/tools/hornet_schema.js b/tools/hornet_schema.js index 9c2257e..2fc7be2 100644 --- a/tools/hornet_schema.js +++ b/tools/hornet_schema.js @@ -166,6 +166,7 @@ var Out = { Ok: [], Missing: [] }; Object.keys(Fields).forEach(function (Key) { if (Prefix && Key.indexOf(Prefix + '.') !== 0) return; + if (typeof Fields[Key] !== 'string') return; // 常量项(如 Team.NeutralId)不参与自检 var V = Get(Target, Key); if (V === undefined) Out.Missing.push(Key + ' → ' + Fields[Key]); else Out.Ok.push(Key + ' → ' + Fields[Key]);