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.
@@ -32811,15 +32811,20 @@ const meetOp = sip => {
32811
32811
  });
32812
32812
  } else {
32813
32813
  // 同步
32814
- delete param.async;
32815
- loadJson(server_ + net.url, { ...param
32816
- }, function (ret) {
32817
- if (ret.code == 0) {
32818
- console.log("结束会议成功");
32819
- } else {
32820
- console.log("结束会议失败", ret.code);
32821
- }
32822
- }, async, net.method);
32814
+ delete param.async; // loadJson(server_+net.url, { ...param }, function(ret){
32815
+ // if(ret.code == 0) {
32816
+ // console.log("结束会议成功");
32817
+ // }else{
32818
+ // console.log("结束会议失败", ret.code);
32819
+ // }
32820
+ // }, async, net.method);
32821
+
32822
+ fetch(server_ + net.url, {
32823
+ method: net.method,
32824
+ body: JSON.stringify({ ...param
32825
+ }),
32826
+ keepalive: true
32827
+ });
32823
32828
  }
32824
32829
  },
32825
32830
  joinVideo: function (param) {
@@ -32870,32 +32875,36 @@ const meetOp = sip => {
32870
32875
 
32871
32876
  if (Object.keys(param).includes('async')) {
32872
32877
  async = param.async;
32873
- }
32874
-
32875
- if (async) {
32876
- return new Promise((resolve, reject) => {
32877
- loadJson(server_ + net.url, { ...param
32878
- }, function (ret) {
32879
- if (ret.code == 0) {
32880
- resolve(ret);
32881
- } else {
32882
- console.log("销毁会议会场失败", ret.code);
32883
- reject(ret.code);
32884
- }
32885
- }, '', net.method);
32886
- });
32887
- } else {
32888
- // 同步
32889
32878
  delete param.async;
32890
- loadJson(server_ + net.url, { ...param
32891
- }, function (ret) {
32892
- if (ret.code == 0) {
32893
- console.log("销毁会议会场成功");
32894
- } else {
32895
- console.log("销毁会议会场失败", ret.code);
32896
- }
32897
- }, async, net.method);
32898
32879
  }
32880
+
32881
+ return fetch(server_ + net.url, {
32882
+ method: net.method,
32883
+ body: JSON.stringify({ ...param
32884
+ }),
32885
+ keepalive: true
32886
+ }); // if(async){
32887
+ // return new Promise((resolve, reject) => {
32888
+ // loadJson(server_+net.url, { ...param }, function(ret){
32889
+ // if(ret.code == 0) {
32890
+ // resolve(ret);
32891
+ // }else{
32892
+ // console.log("销毁会议会场失败", ret.code);
32893
+ // reject(ret.code);
32894
+ // }
32895
+ // }, '', net.method);
32896
+ // });
32897
+ // }else{
32898
+ // // 同步
32899
+ // delete param.async
32900
+ // loadJson(server_+net.url, { ...param }, function(ret){
32901
+ // if(ret.code == 0) {
32902
+ // console.log("销毁会议会场成功");
32903
+ // }else{
32904
+ // console.log("销毁会议会场失败", ret.code);
32905
+ // }
32906
+ // }, async, net.method);
32907
+ // }
32899
32908
  },
32900
32909
  changeMemberStatus: function (param) {
32901
32910
  let net = meet_url.changeMemeberLevelNet;
Binary file