PixelAI-mobile/common/config.service.js

29 lines
712 B
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
let BASE_URL = 'http://8.138.171.103/pixelApi';
// #endif
2024-12-18 14:45:53 +08:00
let IP = 'http://8.138.171.103/';// 测试环境
// let IP = 'http://1.12.224.227/';// 正式环境
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 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,
aliAsyncUrl: ALIOSS_ASYNC_URL,
2024-12-03 09:34:24 +08:00
};
export default configService