ucservice 2.6.3 → 2.6.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.
@@ -32802,15 +32802,20 @@ const meetOp = sip => {
32802
32802
  });
32803
32803
  } else {
32804
32804
  // 同步
32805
- delete param.async;
32806
- loadJson(server_ + net.url, { ...param
32807
- }, function (ret) {
32808
- if (ret.code == 0) {
32809
- console.log("结束会议成功");
32810
- } else {
32811
- console.log("结束会议失败", ret.code);
32812
- }
32813
- }, async, net.method);
32805
+ delete param.async; // loadJson(server_+net.url, { ...param }, function(ret){
32806
+ // if(ret.code == 0) {
32807
+ // console.log("结束会议成功");
32808
+ // }else{
32809
+ // console.log("结束会议失败", ret.code);
32810
+ // }
32811
+ // }, async, net.method);
32812
+
32813
+ fetch(server_ + net.url, {
32814
+ method: net.method,
32815
+ body: JSON.stringify({ ...param
32816
+ }),
32817
+ keepalive: true
32818
+ });
32814
32819
  }
32815
32820
  },
32816
32821
  joinVideo: function (param) {
@@ -32861,32 +32866,36 @@ const meetOp = sip => {
32861
32866
 
32862
32867
  if (Object.keys(param).includes('async')) {
32863
32868
  async = param.async;
32864
- }
32865
-
32866
- if (async) {
32867
- return new Promise((resolve, reject) => {
32868
- loadJson(server_ + net.url, { ...param
32869
- }, function (ret) {
32870
- if (ret.code == 0) {
32871
- resolve(ret);
32872
- } else {
32873
- console.log("销毁会议会场失败", ret.code);
32874
- reject(ret.code);
32875
- }
32876
- }, '', net.method);
32877
- });
32878
- } else {
32879
- // 同步
32880
32869
  delete param.async;
32881
- loadJson(server_ + net.url, { ...param
32882
- }, function (ret) {
32883
- if (ret.code == 0) {
32884
- console.log("销毁会议会场成功");
32885
- } else {
32886
- console.log("销毁会议会场失败", ret.code);
32887
- }
32888
- }, async, net.method);
32889
32870
  }
32871
+
32872
+ return fetch(server_ + net.url, {
32873
+ method: net.method,
32874
+ body: JSON.stringify({ ...param
32875
+ }),
32876
+ keepalive: true
32877
+ }); // if(async){
32878
+ // return new Promise((resolve, reject) => {
32879
+ // loadJson(server_+net.url, { ...param }, function(ret){
32880
+ // if(ret.code == 0) {
32881
+ // resolve(ret);
32882
+ // }else{
32883
+ // console.log("销毁会议会场失败", ret.code);
32884
+ // reject(ret.code);
32885
+ // }
32886
+ // }, '', net.method);
32887
+ // });
32888
+ // }else{
32889
+ // // 同步
32890
+ // delete param.async
32891
+ // loadJson(server_+net.url, { ...param }, function(ret){
32892
+ // if(ret.code == 0) {
32893
+ // console.log("销毁会议会场成功");
32894
+ // }else{
32895
+ // console.log("销毁会议会场失败", ret.code);
32896
+ // }
32897
+ // }, async, net.method);
32898
+ // }
32890
32899
  },
32891
32900
  changeMemberStatus: function (param) {
32892
32901
  let net = meet_url.changeMemeberLevelNet;
Binary file