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]);