ucservice 1.0.1 → 1.0.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import '@/config';
1
+ import { account, aduio, aduio_video, dept_ry, dept, location, meet, message, record, video } from '@/config';
2
2
  import '@/css/scooper.video.css';
3
3
  import sha256_digest from '@/lib/sha256';
4
4
  import { loadJson, initCometd, initVideo } from '@/common-request';
@@ -50,7 +50,7 @@ export const doLogout = function(token){
50
50
 
51
51
  export const keepHeart = function(token){
52
52
  let net = account.heartBeatNet;
53
- loadJson(net.url, { token }, function(ret){
53
+ return () => loadJson(net.url, { token }, function(ret){
54
54
  if(ret.code == 0) {
55
55
  console("心跳设置完成", ret.code);
56
56
  }else{
@@ -1045,7 +1045,7 @@ export const recordOp = {
1045
1045
 
1046
1046
  export const videoOp = {
1047
1047
  call: function(param){
1048
- let net = record.callVideoNet;
1048
+ let net = video.callVideoNet;
1049
1049
  return new Promise((resolve, reject) => {
1050
1050
  loadJson(net.url, { ...param }, function(ret){
1051
1051
  if(ret.code == 0) {
@@ -1058,7 +1058,7 @@ export const videoOp = {
1058
1058
  });
1059
1059
  },
1060
1060
  tree: function(param){
1061
- let net = record.getNodesVideoNet;
1061
+ let net = video.getNodesVideoNet;
1062
1062
  return new Promise((resolve, reject) => {
1063
1063
  loadJson(net.url, { ...param }, function(ret){
1064
1064
  if(ret.code == 0) {
@@ -1070,4 +1070,6 @@ export const videoOp = {
1070
1070
  }, '', net.method);
1071
1071
  });
1072
1072
  }
1073
- }
1073
+ }
1074
+
1075
+ export { account, aduio, aduio_video, dept_ry, dept, location, meet, message, record, video } //接口相关参数以及返回值,暴露出去可以供开发者查看
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.4",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
package/src/config.js CHANGED
@@ -1,13 +1,15 @@
1
- import '@/net_url/account_net_url'; //账号
2
- import '@/net_url/aduio_net_url'; //音频
3
- import '@/net_url/aduio_video_net_url'; //音频、视频公共接口
4
- import '@/net_url/dept_ry_url'; //部门成员
5
- import '@/net_url/dept_url'; //部门
6
- import '@/net_url/location_url'; //定位
7
- import '@/net_url/meet_url'; //会议
8
- import '@/net_url/message_url'; //短信
9
- import '@/net_url/record_url'; //录音录像
10
- import '@/net_url/video_net_url'; //视频
1
+ import account from '@/net_url/account_net_url'; //账号
2
+ import aduio from '@/net_url/aduio_net_url'; //音频
3
+ import aduio_video from '@/net_url/aduio_video_net_url'; //音频、视频公共接口
4
+ import dept_ry from '@/net_url/dept_ry_url'; //部门成员
5
+ import dept from '@/net_url/dept_url'; //部门
6
+ import location from '@/net_url/location_url'; //定位
7
+ import meet from '@/net_url/meet_url'; //会议
8
+ import message from '@/net_url/message_url'; //短信
9
+ import record from '@/net_url/record_url'; //录音录像
10
+ import video from '@/net_url/video_net_url'; //视频
11
11
 
12
12
  export const server = 'http://10.249.4.152:8080'; //服务地址
13
- export const cometd_server = '/scooper-msg-queue/cometd'; //
13
+ export const cometd_server = '/scooper-msg-queue/cometd'; //
14
+
15
+ export { account, aduio, aduio_video, dept_ry, dept, location, meet, message, record, video}