forked from wildfirechat/uni-chat
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js
143 lines (120 loc) · 23.1 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
export default class Config {
// 调试用
static ENABLE_AUTO_LOGIN = true;
// 是否支持多人音视频通话
static ENABLE_MULTI_VOIP_CALL = true;
// 是否支持1对1音视频通话
static ENABLE_SINGLE_VOIP_CALL = true;
static DEFAULT_PORTRAIT_URL = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAFfgAABX4BPgLDIQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAWCSURBVHic7Z3/T9R1HMefn7vPHXfenXeAw0a4UHSVmptKzK0knVqr+MEfwpyuzdqarVqzWcu5WrOfWuZixZitn8TNctRqTdaKvqDpzAoGZKQQaAQUJhwHx32/+/SDc7NT2u58fz7vJ/J+/AHv1xsevL9+Xu8XmmEYBhQ02GR3QPFflBAylBAylBAylBAylBAylBAylBAylBAylBAylBAylBAylBAydNkdyJdo3MDgSAojY2mkUlcurHVdw23FdpSV6HAVaJJ7mB8zSsjEVAYtP0TQ2hZFd38SqfSNvxzodg3LKpxYt9qNTWvc8M2ZOROBNhO+h8STBo58MYmPvgojFs+tu64CDVsf9GL7wz44Hfyjhl7IuYsJvPFBEEOXUjfVzoL5Ol57ugh33uEQ1DNzoBZy7Psp1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gggAACCCCAAAIIIIAAAgMTyI59vlcPq2lxDuVDtT3fjnNVwoGCTw9UV1N2us3CnSZhF5sbcjpP6QNgNajri7NWg/v4/A7vxaMv20lfTmSo5wGg85UDEECngDOdGQigU8CZzgwE0CngTGcGAugUcKYzAwF0CjjTmYEAOgWc6b25nPX0unYO5TjpfQBcZtvawY9+QhgV7zHL2r08mRYoLvXnl4+retp06r/u5UPEyQ0ggE4BZzozEECngDOdGQigU8CZ3smtHdbbM1LnXnyJnmZZmBRfsu9TcZZ9Xd4W0tVKxHp7RuP496+s8baPxrq7HflfAW33dwVYHe/lZrwfd9vjN8aVK5ES7xA1Gw9q2MGHiAEtTgEw1jC0ATSgxSkAxhqGNoAGtDgFwFjD0AbQgBanABhrGNoAGtDiFNXKIbHmTf4AlFp7DqVmjBa3tUu5xjVv+UoUvwBN4uJRO4/asjmUmvK8q74WsEqaz85ri8knF5uvsNi0+0vCUGrKMfIeKEWUfQCVYDIcQCmi7AOoBJPhAEoRZR9AJZgMB1CKKPsAKsFkOIBSRNkHUAkmwwGUIso+gEowGQ6gFFH2AVSCyXDT5azZ/E3WcfeHUlMOVAvY9JcEWVfTH0pNzZiIRQABBBBAAAEEEEAAAQQQ6K/ALz1vZTdxNVa5AAAAAElFTkSuQmCC';
// 视频消息发送完成之前,无法拿到缩略图,故显示一个占位图,256x256
static DEFAULT_VIDEO_POSTER = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAY/klEQVR4nO3de6yV1ZnH8W9PTggxhBhCDEOIMYYSYgyxDOMwjsOsodYyahHvtVbrhdZ6q+NUShtCiGMYq9bqVNEW75eqY62ll1GGWnyGOMQSa40xxjiEEEIIYwhhDCGEkJP541n7uDnuc/btffd6L79PQjgczn7PI5732etd61nPAhEREamfz6UOQHpjZpOAk4DZwFzg8/HjE4CpwBRguOn3g8DRpkuMxM+NNP3dIeBI/PPh+Hvj4/+LHx9o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AYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IiCQkUNbswkIpLmZGhEQyMihrdkEBNLcTI0ICGTk0NZsAgJpbqZGBAQycmhrNgGBNDdTIwICGTm0NZuAQJqbqREBgYwc2ppNQCDNzdSIgEBGDm3NJiCQ5mZqREAgI4e2ZhMQSHMzNSIgkJFDW7MJCKS5mRoREMjIoa3ZBATS3EyNCAhk5NDWbAICaW6mRgQEMnJoazYBgTQ3UyMCAhk5tDWbgECam6kRAYGMHNqaTUAgzc3UiIBARg5tzSYgkOZmakRAICOHtmYTEEhzMzUiIJCRQ1uzCQikuZkaERDIyKGt2QQE0txMjQgIZOTQ1mwCAmlupkYEBDJyaGs2AYE0N1MjAgIZObQ1m4BAmpupEQGBjBzamk1AIM3N1IiAQEYObc0mIJDmZmpEQCAjh7ZmExBIczM1IvAFWDC2pw/rRZEAAAAASUVORK5CYII='
// APP SERVER的地址,不能省略http(s)前缀。
// 默认的app server使用端口是8888,注意端口号别忘记了。
// 上线建议使用https,使用https更安全。
//static APP_SERVER = 'http://wildfirechat.net:8888';
static APP_SERVER = 'https://app.wildfirechat.net';
// 组织结构服务地址,如果没有部署组织结构服务,或者不需要组织结构的话,可置为 null
// 组织结构项目:https://github.com/wildfirechat/organization-platform 或 https://gitee.com/wfchat/organization-platform
static ORGANIZATION_SERVER = 'https://org.wildfirechat.cn';
// 请仔细看注释
// 仅仅是 HOST,没有 http 前缀,后面也没有端口
// IM SERVER 的 host 地址,一定要和 APP_SERVER 对应起来,即 APP_SERVER 上配置的 im-server 和下面所配置的im-server 是同一个
static IM_SERVER_HOST = 'wildfirechat.net'/** 请仔细看上面的注释,仅仅是 HOST,没有 http 前缀,后面也没有端口 **/;
static MESSAGE_ROAMING = 1;
// 如果需要支持音视频通话功能,必须全站使用https(包括app server和im server) + wss,
// WebSockets over SSL/TLS,启用https时,一定要配置为true;不启用https,一定要为false
// 置为true时,请确保 IM SERVER 支持https访问。IM SERVER本身不能处理https请求,一般是通过在IM SERVER前面加上nginx之类的负载均衡器来实现https支持
static USE_WSS = true;
// ROUTE请求端口,默认是80;配置https时,请修改为其他端口,如443等
static ROUTE_PORT = 443;
static QR_CODE_PREFIX_PC_SESSION = "wildfirechat://pcsession/";
// turn server 配置,可以添加多个
// 使用高级版音视频 SDK 时,不用配置!
// !!! 我们提供的服务仅供用户测试和体验,为了保证测试可用,我们会不定期的更改密码. !!!
// 上线时,请一定要切换为你们自己部署的服务
// 格式: [uri, 用户名, 密码],可以添加多个
static ICE_SERVERS = [['turn:turn.wildfirechat.net:3478', 'wfchat', 'wfchat123']];
// 下面这种是 app 端的配置格式
//static ICE_SERVERS = [{uri: 'turn:turn.wildfirechat.net:3478', userName: 'wfchat', password: 'wfchat1'}];
static LANGUAGE = 'zh_CN';
// 配置clientId的生成策略,可选0,1,2;默认0
// 0 clientId存储于内存,每次刷新网页,都会随机生成新的clientId
// 1 clientId存储于sessionStorage,每个session对应一个clientId,刷新网页时,clientId不会变化;但打开新的tab页面,或者重启浏览器等,会重新生成
// 2 clientId存储于localStorage,和域名绑定,每个域名,对应一个clientId,重启浏览器等,不会变化,会导致同一个浏览器,不能同时登录多个不同的账号
// token是和clientId绑定的,当选策略1和2的时候,应用层可选择将上次成功连接的userId和token持久化,当用户进行刷新网页等操作时,可以直接用持久化的userId和token进行连接;而不用重新进行扫码登录
static CLIENT_ID_STRATEGY = 2;
static SDK_PLATFORM_WINDOWS = 3;
static SDK_PLATFORM_OSX = 4;
static SDK_PLATFORM_WEB = 5;
static SDK_PLATFORM_WX = 6;
// uni-app 默认录音格式为mp3
// 如果只有 uni-app 端,没有Android、iOS 或者 PC 端时,录音可以直接播放,可将下面的AMR_TO_MP3_SERVER_ADDRESS置为""
// html5 audio 标签不能播放amr格式的音频,需要将amr格式转换为mp3格式
// 本服务传入amr音频文件的地址,将音频文件转换为mp3格式,并以application/octet-stream的格式返回
// 如果语音消息很多,建议使用cdn
static AMR_TO_MP3_SERVER_ADDRESS = Config.APP_SERVER + '/amr2mp3?path=';
// 文件传输助手ID
static FILE_HELPER_ID = 'wfc_file_transfer';
// 登录时,每个会话最多加载多少条未读消息
static MAX_TO_LOAD_UNREAD_COUNT_PER_CONVERSATION = 99;
/**
* 允许重新编辑多长时间内的撤回消息,单位是秒
*/
static RECALL_REEDIT_TIME_LIMIT = 60;
static platform = 5;
static getWFCPlatform() {
if (Config.platform > 0) {
return Config.platform;
}
let info = uni.getSystemInfoSync();
console.log('systemInfo', info);
if (info.osName === 'ios' || info.platform === 'ios') {
Config.platform = info.deviceType !== 'phone' ? 8 : 1;
} else if (info.osName === 'android' || info.platform === 'android') {
Config.platform = info.deviceType !== 'phone' ? 9 : 2;
} else {
Config.platform = 0;
}
return Config.platform;
}
/**
* 表情 base 路径
* @return {string}
*/
static emojiBaseUrl() {
// 表情的 baseUrl,一定要求以 / 结尾
let emojiBaseUrl = 'https://static.wildfirechat.net/twemoji/assets/';
// 实例代码
// 双网环境时,将表情地址切换到备选网络
// if (Config.isUseBackupAddress()) {
// emojiBaseUrl = 'https://192.168.2.169/twemoji/assets/';
// }
return emojiBaseUrl;
}
static config(options) {
Object.keys(options).forEach(key => {
Config[key] = options[key];
});
}
/**
* 网络地址重定向
*
* 仅当双网环境时,需要特殊处理,默认原样返回
*
* @param {string} url
* @return {string} newUrl
*/
static urlRedirect(url) {
if (!url) {
return url;
}
// 示例代码
// url = url.replace('oss.xxxx.com', '192.168.2.19');
return url;
}
}