72 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

let version = '-'
2025-02-06 11:37:41 +08:00
let buildNumber = '-'
uni.getSystemInfo({
2025-10-27 09:58:13 +08:00
success(res) {
version = res.appVersion
buildNumber = res.appVersionCode
}
2025-02-06 11:37:41 +08:00
})
2024-08-06 12:11:38 +08:00
const DEV = {
2025-10-27 09:58:13 +08:00
name: 'dev',
appName: '星星锁Lite',
baseUrl: 'https://lock.dev.star-lock.cn/api',
webviewBaseUrl: 'https://lock.dev.star-lock.cn',
officialEmail: '',
officialWebsite: '',
version,
buildNumber
2024-08-06 12:11:38 +08:00
}
2024-08-06 12:11:38 +08:00
const PRE = {
2025-10-27 09:58:13 +08:00
name: 'pre',
appName: '星星锁Lite',
baseUrl: 'https://lock.pre.star-lock.cn/api',
webviewBaseUrl: 'https://lock.xhjcn.ltd',
officialEmail: '',
officialWebsite: '',
version,
buildNumber
2024-08-06 12:11:38 +08:00
}
const XHJ = {
2025-10-27 09:58:13 +08:00
name: 'xhj',
appName: '星星锁Lite',
baseUrl: 'https://lock.xhjcn.ltd/api',
webviewBaseUrl: 'https://lock.xhjcn.ltd',
officialEmail: '',
officialWebsite: '',
version,
buildNumber
2024-08-06 12:11:38 +08:00
}
const SKY = {
2025-10-27 09:58:13 +08:00
name: 'sky',
appName: '锁通通',
baseUrl: 'https://lock.skychip.top/api',
webviewBaseUrl: 'https://lock.skychip.top',
officialEmail: 'contact@skychip.top',
officialWebsite: 'www.skychip.top',
version,
buildNumber
}
2025-04-02 10:48:24 +08:00
const GE = {
2025-10-27 09:58:13 +08:00
name: 'ge',
appName: '星星锁Lite',
baseUrl: 'http://lock.ge.star-lock.cn/api',
webviewBaseUrl: 'http://lock.ge.star-lock.cn',
officialEmail: '',
officialWebsite: '',
version,
buildNumber
2025-04-02 10:48:24 +08:00
}
2024-08-06 12:11:38 +08:00
// 更换环境的时候 切换导出就行
2025-10-27 09:58:13 +08:00
export default {
DEV,
PRE,
XHJ,
SKY,
GE
}