PixelAI-mobile/common/config.service.js

34 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-12-03 09:34:24 +08:00
// 接口环境
2024-12-30 19:01:03 +08:00
// #ifdef H5
2024-12-06 23:58:58 +08:00
let BASE_URL = '/pixelApi';
2024-12-30 19:01:03 +08:00
// #endif
// #ifdef APP-PLUS ||MP
2025-02-07 21:28:40 +08:00
// let BASE_URL = 'http://8.138.171.103/pixelApi';// 测试环境
let BASE_URL = 'https://www.ylemai.cn/pixelApi';// 正式环境
2024-12-30 19:01:03 +08:00
// #endif
2025-02-07 21:28:40 +08:00
// let IP = 'http://8.138.171.103/';// 测试环境
let IP = 'https://www.ylemai.cn/';// 正式环境
2024-12-03 09:34:24 +08:00
let FILE_URL = IP+'static/';
2024-12-29 16:09:08 +08:00
// 阿里OSS地址
let ALIOSS_URL = 'http://guojunjie.oss-cn-hangzhou.aliyuncs.com';
let OTHER_ALIOSS_URL = 'http://pixel-ai-file-test.oss-cn-guangzhou.aliyuncs.com';// 测试环境
let ANOTHER_ALIOSS_URL = 'http://pixel-ai-file.oss-cn-guangzhou.aliyuncs.com';// 正式环境
2024-12-29 16:09:08 +08:00
let ALIOSS_ASYNC_URL = "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com";// 异步url
2024-12-03 09:34:24 +08:00
// 火山引擎ai接口地址
let AI_URL = 'https://visual.volcengineapi.com';
const configService = {
apiUrl: BASE_URL,
ip: IP,
fileUrl: FILE_URL,
aiUrl: AI_URL,
2024-12-29 16:09:08 +08:00
aliUrl: ALIOSS_URL,
otherAliUrl: OTHER_ALIOSS_URL,
anotherAliUrl: ANOTHER_ALIOSS_URL,
2024-12-29 16:09:08 +08:00
aliAsyncUrl: ALIOSS_ASYNC_URL,
2024-12-03 09:34:24 +08:00
};
export default configService