1234567891011121314151617181920212223 |
- let lang = (navigator && navigator.language && navigator.language.toLowerCase()) || 'zh'
- let server = "https://api.cocorobo.cn"
- let host = "https://login.cocorobo.cn"
- let edu = "https://api.edu.cocorobo.cn"
- if (lang === 'zh-cn' || lang === 'zh') {
- server = "https://api.cocorobo.cn"
- host = "https://login.cocorobo.cn"
- edu = "https://api.edu.cocorobo.cn"
- } else if (lang === 'zh-tw' || lang === 'zh-hk') {
- server = "https://api.cocorobo.hk"
- host = "https://login.cocorobo.hk"
- edu = "https://api.edu.cocorobo.hk"
- } else {
- server = "https://api.cocorobo.com"
- host = "https://login.cocorobo.com"
- edu = "https://api.edu.cocorobo.com"
- }
- const config = {
- server, host, edu
- }
- export default config
|