2025-07-29 11:07:43 +08:00

57 lines
1.1 KiB
JavaScript

let version = '-'
let buildNumber = '-'
uni.getSystemInfo({
success(res) {
version = res.appVersion
buildNumber = res.appVersionCode
}
})
const DEV = {
name: 'dev',
appName: '星星锁Lite',
baseUrl: 'https://lock.dev.star-lock.cn/api',
webviewBaseUrl: 'https://lock.dev.star-lock.cn',
version,
buildNumber
}
const PRE = {
name: 'pre',
appName: '星星锁Lite',
baseUrl: 'https://lock.pre.star-lock.cn/api',
webviewBaseUrl: 'https://lock.xhjcn.ltd',
version,
buildNumber
}
const XHJ = {
name: 'xhj',
appName: '星星锁Lite',
baseUrl: 'https://lock.xhjcn.ltd/api',
webviewBaseUrl: 'https://lock.xhjcn.ltd',
version,
buildNumber
}
const SKY = {
name: 'sky',
appName: '锁通通',
baseUrl: 'https://lock.skychip.top/api',
webviewBaseUrl: 'https://lock.skychip.top',
version,
buildNumber
}
const GE = {
name: 'ge',
appName: '星星锁Lite',
baseUrl: 'http://lock.ge.star-lock.cn/api',
webviewBaseUrl: 'http://lock.ge.star-lock.cn',
version,
buildNumber
}
// 更换环境的时候 切换导出就行
export default { DEV, PRE, XHJ, SKY, GE }