Sync latest web IM fixes
This commit is contained in:
Vendored
+8
-7
@@ -1,12 +1,13 @@
|
||||
window.JC_WEB_IM_CONFIG = {
|
||||
adminServer: 'http://winchen.ezpay.asia:8024',
|
||||
appServer: 'http://winchen.ezpay.asia:8888',
|
||||
qrAppServer: 'http://winchen.ezpay.asia:18888',
|
||||
adminServer: 'http://18.141.44.165:8100',
|
||||
appServer: '/app-server',
|
||||
qrAppServer: 'http://18.141.44.165:8888',
|
||||
platformConfigApi: '/api/platform_config.php',
|
||||
registerConfigApi: 'http://winchen.ezpay.asia:8024/api/register-config',
|
||||
imServerHost: 'winchen.ezpay.asia',
|
||||
imRoutePort: 18000,
|
||||
registerConfigApi: 'http://18.141.44.165:8100/api/register-config',
|
||||
imServerHost: '18.141.44.165',
|
||||
imRoutePort: 80,
|
||||
useWss: false,
|
||||
wsPath: '/ws',
|
||||
sdkMode: 'http'
|
||||
sdkMode: 'legacy-http',
|
||||
syncIntervalMs: 2500
|
||||
};
|
||||
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
window.JC_WEB_IM_CONFIG = {
|
||||
runtimeEnvironment: 'local',
|
||||
adminServer: 'http://18.141.44.165:8100',
|
||||
appServer: '/app-server',
|
||||
qrAppServer: 'http://18.141.44.165:8888',
|
||||
platformConfigApi: '/local-api/platform_config.php',
|
||||
registerConfigApi: '/local-api/register_config.php',
|
||||
registerPhoneExistsApi: 'http://18.141.44.165:8100/api/register-phone-exists',
|
||||
imServerHost: '18.141.44.165',
|
||||
imRoutePort: 80,
|
||||
useWss: false,
|
||||
wsPath: '/ws',
|
||||
sdkMode: 'legacy-http',
|
||||
syncIntervalMs: 2500,
|
||||
sseEnabled: false,
|
||||
sseTicketApi: '/local-api/sse_ticket.php',
|
||||
sseUrl: '/ws-events'
|
||||
};
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
(() => {
|
||||
const protocol = window.location.protocol || 'http:';
|
||||
const host = window.location.hostname || '18.141.44.165';
|
||||
|
||||
window.JC_WEB_IM_CONFIG = {
|
||||
runtimeEnvironment: 'production',
|
||||
adminServer: `${protocol}//${host}:8100`,
|
||||
appServer: `${protocol}//${host}:8888`,
|
||||
qrAppServer: `${protocol}//${host}:8888`,
|
||||
platformConfigApi: '/api/platform_config.php',
|
||||
registerConfigApi: `${protocol}//${host}:8100/api/register-config`,
|
||||
registerPhoneExistsApi: `${protocol}//${host}:8100/api/register-phone-exists`,
|
||||
imServerHost: host,
|
||||
imRoutePort: 80,
|
||||
useWss: false,
|
||||
wsPath: '/ws',
|
||||
sdkMode: 'legacy-http',
|
||||
syncIntervalMs: 15000,
|
||||
sseEnabled: true,
|
||||
sseTicketApi: '/api/sse_ticket.php',
|
||||
sseUrl: '/ws-events'
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user