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.
@@ -27580,6 +27580,8 @@ let aduio_video = {
27580
27580
  },
27581
27581
  telsStatusAssistNet: {
27582
27582
  url: '/gpsid_server/data/member/listOrgMember',
27583
+ method: 'POST',
27584
+ paramOnUrl: ['token'],
27583
27585
  requestParam: {
27584
27586
  token: '',
27585
27587
  tels: '' //查询状态的号码,用’,’隔开
@@ -32110,8 +32112,18 @@ const aduioVideoOp = sip => {
32110
32112
  },
32111
32113
  telsStatusAssist: function (param) {
32112
32114
  let net = aduio_video_net_url.telsStatusAssistNet;
32115
+ let urlParamString = '';
32116
+
32117
+ if (net.paramOnUrl) {
32118
+ net.paramOnUrl.forEach(key => {
32119
+ urlParamString && (urlParamString += '&');
32120
+ urlParamString += `${key}=${param[key]}`;
32121
+ delete param[key];
32122
+ });
32123
+ }
32124
+
32113
32125
  return new Promise((resolve, reject) => {
32114
- loadJson(server_ + net.url, { ...param
32126
+ loadJson(server_ + net.url + (urlParamString ? '?' + urlParamString : ''), { ...param
32115
32127
  }, function (ret) {
32116
32128
  if (ret.code == 0) {
32117
32129
  resolve(ret);
Binary file