ucservice 2.0.7 → 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.
@@ -27816,6 +27816,7 @@ let dept_ry = {
27816
27816
  url: '/common-gis-web/data/gispos/addPersion',
27817
27817
  method: 'POST',
27818
27818
  contentType: 'application/json;charset=utf-8',
27819
+ paramOnUrl: ['token'],
27819
27820
  requestParam: {
27820
27821
  token: '',
27821
27822
  name: '',
@@ -32259,8 +32260,18 @@ const deptRyOp = sip => {
32259
32260
  },
32260
32261
  createOnGis: function (param) {
32261
32262
  let net = dept_ry_url.createOnGis;
32263
+ let urlParamString = '';
32264
+
32265
+ if (net.paramOnUrl) {
32266
+ net.paramOnUrl.forEach(key => {
32267
+ urlParamString && (urlParamString += '&');
32268
+ urlParamString += `${key}=${param[key]}`;
32269
+ delete param[key];
32270
+ });
32271
+ }
32272
+
32262
32273
  return new Promise((resolve, reject) => {
32263
- loadJson(server_ + net.url, { ...param
32274
+ loadJson(server_ + net.url + (urlParamString ? '?' + urlParamString : ''), { ...param
32264
32275
  }, function (ret) {
32265
32276
  if (ret.code == 0) {
32266
32277
  resolve(ret);
Binary file