ucservice 2.0.6 → 2.0.8

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.
@@ -27825,6 +27825,7 @@ let dept_ry = {
27825
27825
  url: '/common-gis-web/data/gispos/addPersion',
27826
27826
  method: 'POST',
27827
27827
  contentType: 'application/json;charset=utf-8',
27828
+ paramOnUrl: ['token'],
27828
27829
  requestParam: {
27829
27830
  token: '',
27830
27831
  name: '',
@@ -31453,7 +31454,7 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31453
31454
 
31454
31455
  if (contentType && contentType.indexOf('application/json') != -1) {
31455
31456
  Object.assign(ajaxContent, {
31456
- data: JSON.stringify(data)
31457
+ data: JSON.stringify(param)
31457
31458
  });
31458
31459
  }
31459
31460
 
@@ -32268,8 +32269,18 @@ const deptRyOp = sip => {
32268
32269
  },
32269
32270
  createOnGis: function (param) {
32270
32271
  let net = dept_ry_url.createOnGis;
32272
+ let urlParamString = '';
32273
+
32274
+ if (net.paramOnUrl) {
32275
+ net.paramOnUrl.forEach(key => {
32276
+ urlParamString && (urlParamString += '&');
32277
+ urlParamString += `${key}=${param[key]}`;
32278
+ delete param[key];
32279
+ });
32280
+ }
32281
+
32271
32282
  return new Promise((resolve, reject) => {
32272
- loadJson(server_ + net.url, { ...param
32283
+ loadJson(server_ + net.url + (urlParamString ? '?' + urlParamString : ''), { ...param
32273
32284
  }, function (ret) {
32274
32285
  if (ret.code == 0) {
32275
32286
  resolve(ret);
Binary file