ucservice 2.0.3 → 2.0.5

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.
@@ -31441,6 +31441,13 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31441
31441
  if (contentType) Object.assign(ajaxContent, {
31442
31442
  contentType
31443
31443
  });
31444
+
31445
+ if (contentType.indexOf('application/json') != -1) {
31446
+ Object.assign(ajaxContent, {
31447
+ data: JSON.stringify(data)
31448
+ });
31449
+ }
31450
+
31444
31451
  $.ajax(ajaxContent).fail(function (jqXHR, sts) {
31445
31452
  console.error('加载数据失败:' + sts + ", " + url);
31446
31453
  }).done(function (ret) {
@@ -32261,7 +32268,7 @@ const deptRyOp = sip => {
32261
32268
  console.log("创建成员定位到GIS失败", ret.code);
32262
32269
  reject(ret.code);
32263
32270
  }
32264
- }, '', net.method, net.contentType);
32271
+ }, '', net.method, null, net.contentType);
32265
32272
  });
32266
32273
  },
32267
32274
  add: function (param) {
Binary file