ucservice 2.1.3 → 2.1.4

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.
@@ -27571,6 +27571,8 @@ let aduio_video = {
27571
27571
  },
27572
27572
  telsStatusAssistNet: {
27573
27573
  url: '/gpsid_server/data/member/listOrgMember',
27574
+ method: 'POST',
27575
+ paramOnUrl: ['token'],
27574
27576
  requestParam: {
27575
27577
  token: '',
27576
27578
  tels: '' //查询状态的号码,用’,’隔开
@@ -32101,8 +32103,18 @@ const aduioVideoOp = sip => {
32101
32103
  },
32102
32104
  telsStatusAssist: function (param) {
32103
32105
  let net = aduio_video_net_url.telsStatusAssistNet;
32106
+ let urlParamString = '';
32107
+
32108
+ if (net.paramOnUrl) {
32109
+ net.paramOnUrl.forEach(key => {
32110
+ urlParamString && (urlParamString += '&');
32111
+ urlParamString += `${key}=${param[key]}`;
32112
+ delete param[key];
32113
+ });
32114
+ }
32115
+
32104
32116
  return new Promise((resolve, reject) => {
32105
- loadJson(server_ + net.url, { ...param
32117
+ loadJson(server_ + net.url + (urlParamString ? '?' + urlParamString : ''), { ...param
32106
32118
  }, function (ret) {
32107
32119
  if (ret.code == 0) {
32108
32120
  resolve(ret);
Binary file