ucservice 2.0.8 → 2.0.9

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.
@@ -31451,9 +31451,11 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31451
31451
 
31452
31452
  $.ajax(ajaxContent).fail(function (jqXHR, sts) {
31453
31453
  console.error('加载数据失败:' + sts + ", " + url);
31454
+ throw new Error('请求失败!');
31454
31455
  }).done(function (ret) {
31455
31456
  if (!ret || ret.code != 0) {
31456
31457
  console.error('加载数据失败:' + JSON.stringify(ret) + ", " + url);
31458
+ throw new Error('加载数据失败!');
31457
31459
  }
31458
31460
 
31459
31461
  if (backSuccfn) backSuccfn(ret);
Binary file