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.
@@ -31450,6 +31450,13 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31450
31450
  if (contentType) Object.assign(ajaxContent, {
31451
31451
  contentType
31452
31452
  });
31453
+
31454
+ if (contentType.indexOf('application/json') != -1) {
31455
+ Object.assign(ajaxContent, {
31456
+ data: JSON.stringify(data)
31457
+ });
31458
+ }
31459
+
31453
31460
  $.ajax(ajaxContent).fail(function (jqXHR, sts) {
31454
31461
  console.error('加载数据失败:' + sts + ", " + url);
31455
31462
  }).done(function (ret) {
@@ -32270,7 +32277,7 @@ const deptRyOp = sip => {
32270
32277
  console.log("创建成员定位到GIS失败", ret.code);
32271
32278
  reject(ret.code);
32272
32279
  }
32273
- }, '', net.method, net.contentType);
32280
+ }, '', net.method, null, net.contentType);
32274
32281
  });
32275
32282
  },
32276
32283
  add: function (param) {
Binary file