export-table-pulgin-csharp 1.1.95 → 1.1.97

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,CAiGzE;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,17 @@ namespace ${exportNamespace}
151
151
  #endif
152
152
  if (configJson != null)
153
153
  {
154
- var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
154
+ Debug.Log($"解析配表: {loadUrl}");
155
+ ${RowClass}[] jsonObjs;
156
+ try
157
+ {
158
+ jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
159
+ }
160
+ catch(System.Exception ex)
161
+ {
162
+ Debug.LogError($"解析配表失败: {loadUrl}");
163
+ throw ex;
164
+ }
155
165
  var configs = ${RowClass}.Configs;
156
166
  configs.Clear();
157
167
  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.97",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -148,7 +148,17 @@ namespace ${exportNamespace}
148
148
  #endif
149
149
  if (configJson != null)
150
150
  {
151
- var jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
151
+ Debug.Log($"解析配表: {loadUrl}");
152
+ ${RowClass}[] jsonObjs;
153
+ try
154
+ {
155
+ jsonObjs = JSON.parse<${RowClass}[]>(configJson.text);
156
+ }
157
+ catch(System.Exception ex)
158
+ {
159
+ Debug.LogError($"解析配表失败: {loadUrl}");
160
+ throw ex;
161
+ }
152
162
  var configs = ${RowClass}.Configs;
153
163
  configs.Clear();
154
164
  configs.AddRange(jsonObjs);