export-table-pulgin-csharp 1.1.95 → 1.1.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAOxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA6FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuFzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
1
+ {"version":3,"file":"ExportUnityCSJsonPlugin.d.ts","sourceRoot":"","sources":["../src/ExportUnityCSJsonPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAqC,MAAM,kBAAkB,CAAA;AAOxJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA6FnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAgGzE;AAED,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,IAAI,SAAU;IACd,IAAI,EAAE,MAAM,EAAE,CAAY;IAE1B,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAmBpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAmC3C"}
@@ -151,7 +151,16 @@ namespace ${exportNamespace}
151
151
  #endif
152
152
  if (configJson != null)
153
153
  {
154
- var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
154
+ ${RowClass}[] jsonObjs;
155
+ try
156
+ {
157
+ jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
158
+ }
159
+ catch(System.Exception ex)
160
+ {
161
+ Debug.LogError($"解析配表失败: {loadUrl}");
162
+ throw ex;
163
+ }
155
164
  var configs = ${RowClass}.Configs;
156
165
  configs.Clear();
157
166
  configs.AddRange(jsonObjs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.95",
3
+ "version": "1.1.96",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -148,7 +148,16 @@ namespace ${exportNamespace}
148
148
  #endif
149
149
  if (configJson != null)
150
150
  {
151
- var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
151
+ ${RowClass}[] jsonObjs;
152
+ try
153
+ {
154
+ jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
155
+ }
156
+ catch(System.Exception ex)
157
+ {
158
+ Debug.LogError($"解析配表失败: {loadUrl}");
159
+ throw ex;
160
+ }
152
161
  var configs = ${RowClass}.Configs;
153
162
  configs.Clear();
154
163
  configs.AddRange(jsonObjs);