Files
im/common/config.js
T
2026-01-11 13:51:16 +08:00

30 lines
1.0 KiB
JavaScript

// const BASE_HOST = 'your-server-ip'
// const CHAT_URL = `http://${BASE_HOST}:10008`
// const API_URL = `http://${BASE_HOST}:10002`
// const WS_URL = `ws://${BASE_HOST}:10001`
const BASE_DOMAIN = 'www.shun777.com'
// const CHAT_URL = `https://${BASE_DOMAIN}/chat`
// const API_URL = `https://${BASE_DOMAIN}/api`
// const WS_URL = `wss://${BASE_DOMAIN}/msg_gateway`
// const CHAT_URL = `http://${BASE_DOMAIN}/api`
// const API_URL = `http://${BASE_DOMAIN}/imapi`
// const WS_URL = `ws://${BASE_DOMAIN}/ws`
const CHAT_URL = `http://103.39.222.184:8585/api`
const API_URL = `http://103.39.222.184:10002`
const WS_URL = `ws://103.39.222.184:10001`
const version = '2.0.6'
const getRegisterUrl = () => uni.getStorageSync("IMRegisteUrl") || CHAT_URL;
const getApiUrl = () => uni.getStorageSync("IMApiUrl") || API_URL;
const getWsUrl = () => uni.getStorageSync("IMWsUrl") || WS_URL;
module.exports = {
//cdnUrl:"http://"+BASE_DOMAIN,
cdnUrl:"https://shunliao.oss-accelerate.aliyuncs.com",
version,
getRegisterUrl,
getApiUrl,
getWsUrl,
};